From: Ake.Sandgren@hpc2n.umu.se (Ake)
To: linux-kernel@vger.kernel.org
Subject: Bug in 2.4.26 in mm/filemap.c when using RLIMIT_RSS
Date: Wed, 26 Jan 2005 12:07:50 +0100 [thread overview]
Message-ID: <20050126110750.GE7349@hpc2n.umu.se> (raw)
Use of rlim[RLIMIT_RSS] in mm/filemap.c is wrong.
It is passed down to kernel as a number of bytes but is being used as a
number of pages.
There is also a misinformative comment in fs/proc/array.c
in proc_pid_stat where it says
mm ? mm->rss : 0, /* you might want to shift this left 3 */
the number 3 should probably be PAGE_SHIFT-10.
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: ake@hpc2n.umu.se Phone: +46 90 7866134 Fax: +46 90 7866126
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se
next reply other threads:[~2005-01-26 11:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 11:07 Ake [this message]
2005-01-26 14:49 ` Marcelo Tosatti
2005-01-27 6:38 ` Ake
2005-01-27 7:44 ` Marcelo Tosatti
2005-01-28 15:09 ` Hugh Dickins
2005-01-27 18:55 ` Marcelo Tosatti
2005-01-28 6:44 ` Ake
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=20050126110750.GE7349@hpc2n.umu.se \
--to=ake.sandgren@hpc2n.umu.se \
--cc=linux-kernel@vger.kernel.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 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®