harsh97 / compcache

Automatically exported from code.google.com/p/compcache
1 stars 0 forks source link

Zram stats script reports wrong original size #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Simple load and use the zram module as stated in the manual. When you go and 
check the stats using the zram stats script, it reports the wrong original 
size. Let's say I copy a 1.4GB file to the zram disk. It actually reports 
1.2GB, a size even lesser than the original file.

What version of the product are you using? On what operating system?
I'm using the 0.7 version taken from the repository. I know it's not the latest 
but I'm using it for a project and this seemed to work better for me.

Please provide any additional information below.
I'm not sure if this is a bug or it's supposed to be like this. Can anyone 
please help? Or has anyone else noticed it too?

Original issue reported on code.google.com by djunderc...@gmail.com on 11 Oct 2012 at 9:06

GoogleCodeExporter commented 9 years ago
orig_data_size shows original size of all pages except those filled with only 
zeroes.
To get real original size you should zero_pages*PAGE_SIZE to it.

Original comment by DarkDim...@gmail.com on 23 Feb 2013 at 1:56