Update of /cvsroot/linuxcompressed/linux/fs/proc
In directory usw-pr-cvs1:/tmp/cvs-serv16722/fs/proc
Modified Files:
proc_misc.c
Log Message:
Feature
o New proc entry (comp_cache_frag), showing the fragmentation in the
compressed cache.
o Every struct comp_cache_struct is added to two hash tables: free
space and total free space. The former is the old one, showing the
amount of free space that can be used right away. The latter shows the
total free space, ie it also accounts the fragmented space. Thus, if
there is a page with total space enough for a new fragment, we compact
this page and return it to be used by the new fragment. The two tables
are set up the same way.
o Added back feature removed in 0.23pre9 due to a bug fix. That
feature would allow pages to be compressed even when the gfp_mask does
not allow. Now it is back and it won't write out a page if the
gfp_mask does not allow. This feature allows a better use of the
compressed cache space.
Cleanup
o Removed dirty parameter from get_comp_cache_page().
o Better descriptions of /proc/comp_cache_{hist,frag}.
Index: proc_misc.c
===================================================================
RCS file: /cvsroot/linuxcompressed/linux/fs/proc/proc_misc.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** proc_misc.c 29 May 2002 21:28:54 -0000 1.5
--- proc_misc.c 11 Jul 2002 19:08:10 -0000 1.6
***************
*** 526,529 ****
--- 526,530 ----
{"comp_cache_stat", comp_cache_stat_read_proc},
{"comp_cache_hist", comp_cache_hist_read_proc},
+ {"comp_cache_frag", comp_cache_frag_read_proc},
#endif
{"devices", devices_read_proc},
|