Andriy Gapon 937c1b0757 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
2017-02-14 13:54:05 +00:00
..
2016-09-10 16:49:25 +00:00
2017-02-13 09:04:38 +00:00
2017-01-05 03:13:45 +00:00
2017-01-01 18:49:46 +00:00
2016-12-26 19:29:04 +00:00
2017-02-13 09:04:38 +00:00
2017-02-14 13:54:05 +00:00
2017-01-12 20:26:02 +00:00