From: "Paul Menage" <menage@google.com>
To: "Andrew Morton" <akpm@osdl.org>, "Paul Jackson" <pj@sgi.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] Allow a larger buffer for writes to cpuset files
Date: Mon, 30 Oct 2006 18:38:41 -0800 [thread overview]
Message-ID: <6599ad830610301838i65a00d85g82647435ea4581a4@mail.gmail.com> (raw)
When using fake NUMA setup, the number of memory nodes can greatly
exceed the number of CPUs. So the current limit in
cpuset_common_file_write() is insufficient. PAGE_SIZE is still a bit
of an arbitrary limit, but gives more breathing room.
Signed-off-by: Paul Menage <menage@google.com>
--- 2.6.19-rc2.orig/kernel/cpuset.c
+++ 2.6.19-rc2/kernel/cpuset.c
@@ -1292,7 +1292,7 @@ static ssize_t cpuset_common_file_write(
int retval = 0;
/* Crude upper limit on largest legitimate cpulist user might write. */
- if (nbytes > 100 + 6 * NR_CPUS)
+ if (nbytes >= PAGE_SIZE)
return -E2BIG;
/* +1 for nul-terminator */
next reply other threads:[~2006-10-31 2:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 2:38 Paul Menage [this message]
2006-10-31 4:00 ` Paul Jackson
2006-10-31 4:15 ` Paul Menage
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=6599ad830610301838i65a00d85g82647435ea4581a4@mail.gmail.com \
--to=menage@google.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.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
all inboxes | Powered by JetHome®