Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2017 13:55:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210315] panic: destroying non-empty racct: 2113536 allocated for resource 4
Message-ID:  <bug-210315-8-SuoKWcU4wM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210315-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210315-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210315

--- Comment #14 from commit-hook@freebsd.org ---
A commit references this bug:

Author: avg
Date: Tue Feb 14 13:54:05 UTC 2017
New revision: 313730
URL: https://svnweb.freebsd.org/changeset/base/313730

Log:
  try to fix RACCT_RSS accounting

  There could be a race between the vm daemon setting RACCT_RSS based on
  the vm space and vmspace_exit (called from exit1) resetting RACCT_RSS to
  zero.  In that case we can get a zombie process with non-zero RACCT_RSS.
  If the process is jailed, that may break accounting for the jail.
  There could be other consequences.

  Fix this race in the vm daemon by updating RACCT_RSS only when a process
  is in the normal state.  Also, make accounting a little bit more
  accurate by refreshing the page resident count after calling
  vm_pageout_map_deactivate_pages().
  Finally, add an assert that the RSS is zero when a process is reaped.

  PR:           210315
  Reviewed by:  trasz
  Differential Revision: https://reviews.freebsd.org/D9464

Changes:
  head/sys/kern/kern_racct.c
  head/sys/vm/vm_pageout.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210315-8-SuoKWcU4wM>