Thread (13 messages) 13 messages, 6 authors, 2012-06-11

Re: [patch 12/12] mm: correctly synchronize rss-counters at exit/exec

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2012-06-08 01:20:21
Also in: lkml, stable

No, this is apparently that same "almost there" patch from Oleg. I
guarantee that it's wrong.

                Linus

---

[ This part, to be exact: ]

On Thu, Jun 7, 2012 at 6:16 PM, Hugh Dickins [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/kernel/tsacct.c
+++ b/kernel/tsacct.c
@@ -91,6 +91,7 @@ void xacct_add_tsk(struct taskstats *stats, struct task_struct *p)
       stats->virtmem = p->acct_vm_mem1 * PAGE_SIZE / MB;
       mm = get_task_mm(p);
       if (mm) {
+               sync_mm_rss(mm);
               /* adjust to KB unit */
               stats->hiwater_rss   = get_mm_hiwater_rss(mm) * PAGE_SIZE / KB;
               stats->hiwater_vm    = get_mm_hiwater_vm(mm)  * PAGE_SIZE / KB;
--
1.5.5.1
--
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help