Hi,<br><br>In the compcache_make_request function :<br><br>static int compcache_make_request(struct request_queue *queue, struct bio *bio)<br>{<br>....<br>....<br>....<br><br>// go to the end of this function<br><br>/* Update stats */<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stat_inc(&amp;stats.curr_pages);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stat_set(&amp;stats.curr_mem, stats.curr_mem + clen); &lt;&lt;&lt;&lt;**********<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stat_setmax(&amp;stats.peak_mem, stats.curr_mem);<br>

&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>...<br>...&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>}<br><br>I assume that <br>stat_set(&amp;stats.curr_mem, stats.curr_mem + clen);<br>means that each time there is a &quot;write&quot; operation to the CompCache the stats.curr_mem&nbsp; will grow up, <br>

but in &quot;compcache.h&quot;&nbsp;&nbsp; curr_mem&nbsp;&nbsp; is described as &quot;current total size of compressed pages&quot; <br><br>&nbsp;&nbsp;&nbsp; size_t curr_mem;&nbsp;&nbsp;&nbsp; /* current total size of compressed pages */<br><br>so it&#39;s I understand the current size of CompCache, in this case compcache should take in consideration pages that are no longer under it&#39;s control<br>

but if you mean by this the total size of all compressed pages since the loading of CompCache, so its ak, but I think It&#39;s less ambiguous (at least for me:) ) to use for example :&nbsp; &quot;totalCmpressedPages_Size&quot;&nbsp; in /proc/compcache instead of using&nbsp; &quot;CurrentMem&quot;<br>

<br>this is an example of what I want to say :<br><br>DiskSize:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 180000 kB<br>NumReads:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 329124<br>NumWrites:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 149598<br>FailedReads:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>FailedWrites:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>InvalidIO:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>

GoodCompress:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 76 %<br>NoCompress:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 %<br>CurrentPages:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 44995<br>CurrentMem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 208874 kB<br>PeakMem:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 208874 kB<br><br><br>here the DiskSize is 180Mb&nbsp; and&nbsp; CurrentMem is 208MB,&nbsp; but CurrentMem should never be more than DiskSize&nbsp; :)<br>

<br>Best regard,<br clear="all"><br>-- <br>- Baghdadi Riyadh