public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bug in 2.4.26 in mm/filemap.c when using RLIMIT_RSS
@ 2005-01-26 11:07 Ake
  2005-01-26 14:49 ` Marcelo Tosatti
  0 siblings, 1 reply; 7+ messages in thread
From: Ake @ 2005-01-26 11:07 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-28  6:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-26 11:07 Bug in 2.4.26 in mm/filemap.c when using RLIMIT_RSS Ake
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox