From: Dave Hansen <haveblue@us.ibm.com>
To: Chandra Seetharaman <sekharan@us.ibm.com>
Cc: ckrm-tech@lists.sourceforge.net, linux-mm <linux-mm@kvack.org>
Subject: Re: [ckrm-tech] [Patch 5/6] CKRM: Add config support for mem controller
Date: Wed, 18 May 2005 18:26:50 -0700 [thread overview]
Message-ID: <1116466010.26955.102.camel@localhost> (raw)
In-Reply-To: <20050519003324.GA25265@chandralinux.beaverton.ibm.com>
There appears to still be some serious issues in the patch with respect
to per-zone accounting. There is only accounting in each ckrm_mem_res
for each *kind* of zone, not each zone.
For instance, the accounting for a page appears to be the same no matter
which zone it came from, just which kind of zone
Then, when it comes to actually use some of the information, the kswapd
wakeup just throws a completely unrelated number into wakeup_kswapd().
ZONE_DMA (zone 0) tends to be *MUCH* smaller than ZONE_HIGHMEM, for
instance. It doesn't make a whole lot of logical sense to me to be
waking up kswapd for a possibly 16GB zone with data from a 16MB zone.
+ for_each_zone(zone) {
+ /* This is just a number to get to wakeup kswapd */
+ order = cls->pg_total[0] -
+ ((ckrm_mem_shrink_to * cls->pg_limit) / 100);
+ wakeup_kswapd(zone, order);
+ break; /* only once is enough */
+ }
If the number doesn't matter, why not just pass 0 into it?
Could you explain what advantages keeping a per-zone-type count has over
actually doing one count for each zone? Also, why bother tracking it
per-zone-type anyway? Would a single count work the same way?
-- Dave
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2005-05-19 1:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 0:33 Chandra Seetharaman
2005-05-19 1:26 ` Dave Hansen [this message]
2005-05-19 16:26 ` [ckrm-tech] " Chandra Seetharaman
2005-05-19 16:43 ` Dave Hansen
2005-05-19 16:49 ` Chandra Seetharaman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1116466010.26955.102.camel@localhost \
--to=haveblue@us.ibm.com \
--cc=ckrm-tech@lists.sourceforge.net \
--cc=linux-mm@kvack.org \
--cc=sekharan@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox