Messages in this thread | | | Date | Wed, 26 Jan 2005 12:07:50 +0100 | Subject | Bug in 2.4.26 in mm/filemap.c when using RLIMIT_RSS | From | (Ake) |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |