Re: [PATCH 8/8] Per-container pages reclamation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vaidyanathan Srinivasan
Date: Thursday, May 31, 2007 - 1:22 am

Andrew Morton wrote:
[snip]

Can we iterate from MAX_NR_ZONES-1 to automatically choose the right
zone for the system?

for_each_online_node(node)
	for (i = MAX_NR_ZONES - 1; i >= 0; i--) {
 		zones = NODE_DATA(node)->node_zonelists[i].zones;
		if (do_try_to_free_pages(zones, sc.gfp_mask, &sc))
			return 1;

The above code works on my PPC64 box where all memory is in ZOME_DMA.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] RSS controller based on process containers (v3), Pavel Emelianov, (Wed May 30, 8:24 am)
[PATCH 1/8] Resource counters, Pavel Emelianov, (Wed May 30, 8:26 am)
[PATCH 2/8] Add container pointer on struct page, Pavel Emelianov, (Wed May 30, 8:28 am)
[PATCH 3/8] Add container pointer on mm_struct, Pavel Emelianov, (Wed May 30, 8:29 am)
[PATCH 4/8] RSS container core, Pavel Emelianov, (Wed May 30, 8:32 am)
[PATCH 5/8] RSS accounting hooks over the code, Pavel Emelianov, (Wed May 30, 8:34 am)
[PATCH 6/8] Per container OOM killer, Pavel Emelianov, (Wed May 30, 8:35 am)
[PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Wed May 30, 8:42 am)
Re: [PATCH 1/8] Resource counters, Andrew Morton, (Wed May 30, 2:44 pm)
Re: [PATCH 2/8] Add container pointer on struct page, Andrew Morton, (Wed May 30, 2:45 pm)
Re: [PATCH 3/8] Add container pointer on mm_struct, Andrew Morton, (Wed May 30, 2:45 pm)
Re: [PATCH 4/8] RSS container core, Andrew Morton, (Wed May 30, 2:46 pm)
Re: [PATCH 5/8] RSS accounting hooks over the code, Andrew Morton, (Wed May 30, 2:46 pm)
Re: [PATCH 8/8] Per-container pages reclamation, Andrew Morton, (Wed May 30, 2:47 pm)
Re: [PATCH 8/8] Per-container pages reclamation, Vaidyanathan Srinivasan, (Thu May 31, 1:22 am)
Re: [PATCH 4/8] RSS container core, Pavel Emelianov, (Thu May 31, 2:00 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Thu May 31, 2:22 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Thu May 31, 3:35 am)
Re: [PATCH 8/8] Per-container pages reclamation, Andrew Morton, (Thu May 31, 10:58 am)
Re: [PATCH 5/8] RSS accounting hooks over the code, Balbir Singh, (Thu May 31, 11:48 pm)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Fri Jun 1, 12:02 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Fri Jun 1, 12:44 am)
Re: [PATCH 8/8] Per-container pages reclamation, Andrew Morton, (Fri Jun 1, 12:49 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Fri Jun 1, 12:50 am)
Re: [PATCH 8/8] Per-container pages reclamation, Balbir Singh, (Fri Jun 1, 2:23 am)
Re: [PATCH 8/8] Per-container pages reclamation, Pavel Emelianov, (Fri Jun 1, 2:27 am)