Inact_laundry

This commit is contained in:
albert 2002-12-08 00:14:02 +00:00
parent 967acac8b7
commit c3ee8f3252
3 changed files with 20 additions and 15 deletions

29
NEWS
View File

@ -1,22 +1,23 @@
procps-3.1.1 --> procps-3. procps-3.1.1 --> procps-3.1.2
vmstat -s better RPM generation
vmstat -f
top handles old (and future) config files
w is way faster
top's B toggle
top's t fixed <--- minor bug
top several times faster
out-of-bounds RT as "RT"
general C99 clean-up general C99 clean-up
watch: don't drop empty lines <--- minor bug some seLinux fixes
watch: re-indented
ps: smaller (was it 1 kB or 2 kB ?)
ps: fewer globals ps: fewer globals
ps: hardware-enforced buffer protection ps: hardware-enforced buffer protection
some seLinux fixes <--- minor bug ps: smaller (was it 1 kB or 2 kB ?)
top: old sort keys top: B command added (for bold on/off)
top: handle old (and future) config files
top: man page tweak top: man page tweak
top: old sort keys #167249
top: out-of-bounds RT as "RT"
top: several times faster
top: t command fixed
vmstat: -f
vmstat: -s
w: much faster
watch: don't drop empty lines #171005
watch: re-indented
procps-3.1.0 --> procps-3.1.1 procps-3.1.0 --> procps-3.1.1

View File

@ -302,6 +302,7 @@ static int compare_mem_table_structs(const void *a, const void *b){
* Inact_dirty: 7772 kB new * Inact_dirty: 7772 kB new
* Inact_clean: 2008 kB new * Inact_clean: 2008 kB new
* Inact_target: 0 kB new * Inact_target: 0 kB new
* Inact_laundry: 0 kB new, and might be missing too
* HighTotal: 0 kB * HighTotal: 0 kB
* HighFree: 0 kB * HighFree: 0 kB
* LowTotal: 61768 kB * LowTotal: 61768 kB
@ -334,6 +335,7 @@ unsigned kb_low_free;
unsigned kb_low_total; unsigned kb_low_total;
/* 2.4.xx era */ /* 2.4.xx era */
unsigned kb_active; unsigned kb_active;
unsigned kb_inact_laundry;
unsigned kb_inact_dirty; unsigned kb_inact_dirty;
unsigned kb_inact_clean; unsigned kb_inact_clean;
unsigned kb_inact_target; unsigned kb_inact_target;
@ -367,6 +369,7 @@ void meminfo(void){
{"HighTotal", &kb_high_total}, {"HighTotal", &kb_high_total},
{"Inact_clean", &kb_inact_clean}, {"Inact_clean", &kb_inact_clean},
{"Inact_dirty", &kb_inact_dirty}, {"Inact_dirty", &kb_inact_dirty},
{"Inact_laundry",&kb_inact_laundry},
{"Inact_target", &kb_inact_target}, {"Inact_target", &kb_inact_target},
{"Inactive", &kb_inactive}, {"Inactive", &kb_inactive},
{"LowFree", &kb_low_free}, {"LowFree", &kb_low_free},
@ -415,7 +418,7 @@ nextline:
kb_low_free = kb_main_free; kb_low_free = kb_main_free;
} }
if(kb_inactive==~0U){ if(kb_inactive==~0U){
kb_inactive = kb_inact_dirty + kb_inact_clean; kb_inactive = kb_inact_dirty + kb_inact_clean + kb_inact_laundry;
} }
kb_swap_used = kb_swap_total - kb_swap_free; kb_swap_used = kb_swap_total - kb_swap_free;
kb_main_used = kb_main_total - kb_main_free; kb_main_used = kb_main_total - kb_main_free;

View File

@ -30,6 +30,7 @@ extern unsigned kb_low_free;
extern unsigned kb_low_total; extern unsigned kb_low_total;
/* 2.4.xx era */ /* 2.4.xx era */
extern unsigned kb_active; extern unsigned kb_active;
extern unsigned kb_inact_laundry; // grrr...
extern unsigned kb_inact_dirty; extern unsigned kb_inact_dirty;
extern unsigned kb_inact_clean; extern unsigned kb_inact_clean;
extern unsigned kb_inact_target; extern unsigned kb_inact_target;