Comments (2)
> Also VMalloc is much larger than normal (even after rmmod compcache and tlsf):
> VmallocTotal: 770040 kB
> VmallocUsed: 5164 kB
> VmallocChunk: 737848 kB
This is normal. It shows that vmalloc area total size is ~770M (normal) out of
wich
only ~5M is used. 'VmallocChunk' shows largest contiguous virtual memory area
available (if I understand correctly).
> I notice that machine becomes very slow, even if I remove compcache.
I think this is the explanation for this:
- Compcache compresses only swap cache pages and hence space for page cache
(filesystem backed) pages reduces. So, if application working set from page
cache
pages is greater than (TotalMem - compcacheUsedMem) then system begins to
thrash. I
have observed this behaviour on my system also -- particulary when I set
compcache to
a big ratio caompared with TotalRAM (say >65%).
- When you disable compcache, all those pages are decompressed which is beyond
what
RAM can handle (thats why they were compressed in first place!). Now:
* If swap hdisk is present, they are now again swapped to now slow hdisk
system. If these pages are part some applications working set then it causes
system
thrashing.
* For swapless system, these additional pages will force page-cache pages to be
reclaimed/flushed and system again thrashes.
So, if you observe slow down of system for your particular workload so can try
these:
- Temporarily increase swappiness to, say 80 (echo 80 > /proc/sys/vm/swappiness)
- Try using smaller compcache (say 40% of RAM).
If your system still thrashes ot you get oom-kills, then your memory required
are
just too much for even compression business to handle!
Original comment by [email protected]
on 6 Mar 2008 at 9:29
from compcache.
comment #1 gives reason for this issue.
Original comment by [email protected]
on 8 Mar 2008 at 11:42
- Changed state: WontFix
from compcache.
Related Issues (20)
- mkswap with 16KB page size fails HOT 1
- Failed to load zram kernel module on kernel 3.0.0-8-generic HOT 2
- Allow specifying numdevices during kernel config and as boot parameter and add the discard patch to the kernel HOT 3
- kernel BUG at /usr/src/linux-source-2.6.38/drivers/staging/zram/xvmalloc.c:433! HOT 1
- Patch for /sub-projects/scripts/git-diffc HOT 1
- discard/trim support ? HOT 3
- Snappy compression support HOT 4
- zcache spurs Kernel warnings: HOT 5
- zram.num_devices parameter ignored in kernel 3.2.x HOT 4
- Zram Block IO error Linux 3.6 HOT 20
- Zram stats script reports wrong original size HOT 1
- zram gone from kernel 3.5.5 HOT 2
- kernel error writing on zram HOT 1
- Please add a summary on zram_stats
- System crash with swap on a zram device on a 32 bits system with kernel >= 3.6 HOT 3
- ramzswapd stats not getting updated in kernel 2.6.10
- Changing disk size on linux 3.8 broken.
- crash during zram-init if low on memory / kernel 3.8.2
- zram crash during restart on kernel 3.8.3
- ZRAM + Qemu + KSM = system hang HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compcache.