From: Andrew Morton <akpm@osdl.org>
To: Rohit Seth <rohit.seth@intel.com>
Cc: torvalds@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: Making high and batch sizes of per_cpu_pagelists configurable
Date: Thu, 8 Dec 2005 19:20:32 -0800 [thread overview]
Message-ID: <20051208192032.6387f638.akpm@osdl.org> (raw)
In-Reply-To: <20051208190016.A3975@unix-os.sc.intel.com>
Rohit Seth <rohit.seth@intel.com> wrote:
>
> + if ((high/4) > (PAGE_SHIFT * 8))
> + pcp->batch = PAGE_SHIFT * 8;
hm. What relationship is there between log2(PAGE_SIZE) and the batch
quantity? I'd have thought that if anything, we'd want to make the batch
sizes smaller for larger PAGE_SIZE. Or something.
> +}
> +
> +/*
> + * percpu_pagelist_fraction - changes the pcp->high for each zone on each
> + * cpu. It is the fraction of total pages in each zone that a hot per cpu pagelist
> + * can have before it gets flushed back to buddy allocator.
> + */
> +
> +int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
> + struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
> +{
> + struct zone *zone;
> + unsigned int cpu;
> + int ret;
> +
> + ret = proc_dointvec_minmax(table, write, file, buffer, length, ppos);
> + if (!write || (ret == -EINVAL))
> + return ret;
> + for_each_zone(zone) {
> + for_each_online_cpu(cpu) {
> + unsigned long high;
> + high = zone->present_pages / percpu_pagelist_fraction;
> + setup_pagelist_highmark(zone_pcp(zone, cpu), high);
What happens if a CPU comes online afterwards?
WARNING: multiple messages have this Message-ID (diff)
From: Andrew Morton <akpm@osdl.org>
To: Rohit Seth <rohit.seth@intel.com>
Cc: torvalds@osdl.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: Making high and batch sizes of per_cpu_pagelists configurable
Date: Thu, 8 Dec 2005 19:20:32 -0800 [thread overview]
Message-ID: <20051208192032.6387f638.akpm@osdl.org> (raw)
In-Reply-To: <20051208190016.A3975@unix-os.sc.intel.com>
Rohit Seth <rohit.seth@intel.com> wrote:
>
> + if ((high/4) > (PAGE_SHIFT * 8))
> + pcp->batch = PAGE_SHIFT * 8;
hm. What relationship is there between log2(PAGE_SIZE) and the batch
quantity? I'd have thought that if anything, we'd want to make the batch
sizes smaller for larger PAGE_SIZE. Or something.
> +}
> +
> +/*
> + * percpu_pagelist_fraction - changes the pcp->high for each zone on each
> + * cpu. It is the fraction of total pages in each zone that a hot per cpu pagelist
> + * can have before it gets flushed back to buddy allocator.
> + */
> +
> +int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
> + struct file *file, void __user *buffer, size_t *length, loff_t *ppos)
> +{
> + struct zone *zone;
> + unsigned int cpu;
> + int ret;
> +
> + ret = proc_dointvec_minmax(table, write, file, buffer, length, ppos);
> + if (!write || (ret == -EINVAL))
> + return ret;
> + for_each_zone(zone) {
> + for_each_online_cpu(cpu) {
> + unsigned long high;
> + high = zone->present_pages / percpu_pagelist_fraction;
> + setup_pagelist_highmark(zone_pcp(zone, cpu), high);
What happens if a CPU comes online afterwards?
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2005-12-09 3:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-09 3:00 [PATCH]: Making high and batch sizes of per_cpu_pagelists configurable Rohit Seth
2005-12-09 3:00 ` Rohit Seth
2005-12-09 3:20 ` Andrew Morton [this message]
2005-12-09 3:20 ` Andrew Morton
2005-12-09 17:58 ` Rohit Seth
2005-12-09 17:58 ` Rohit Seth
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=20051208192032.6387f638.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rohit.seth@intel.com \
--cc=torvalds@osdl.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.