Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
linux:ubuntu [2008/03/06 15:26] a created |
linux:ubuntu [2014/09/26 12:28] (current) zagi |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| # update-alternatives --config editor | # update-alternatives --config editor | ||
| + | === Disabling compcache in Ubuntu Jaunty (and Related Swap Errors) === | ||
| + | This bug can also be seen if you are seeing errors like these: | ||
| + | < | ||
| + | Mar 6 17:27:29 server kernel: [14438.135859] compcache: Error allocating memory for compressed page: 60594, size=4096 | ||
| + | Mar 6 17:27:29 server kernel: [14438.135871] Write-error on swap-device (254: | ||
| + | Mar 6 17:27:29 server kernel: [14438.136813] allocation failed: out of vmalloc space - use vmalloc= to increase size. | ||
| + | Mar 6 17:27:29 server kernel: [14438.136824] compcache: Error allocating memory for compressed page: 60595, size=2093 | ||
| + | Mar 6 17:27:29 server kernel: [14438.136835] Write-error on swap-device (254: | ||
| + | Mar 6 17:27:29 server kernel: [14438.137088] allocation failed: out of vmalloc space - use vmalloc= to increase size. | ||
| + | Mar 6 17:27:29 server kernel: [14438.137098] compcache: Error allocating memory for compressed page: 60596, size=4079 | ||
| + | Mar 6 17:27:29 server kernel: [14438.137108] Write-error on swap-device (254: | ||
| + | </ | ||
| + | |||
| + | You can also see it when you print swap information with the command swapon -s – if compcache is enabled, one of the swap entries will be “ramzswap”. | ||
| + | |||
| + | To disable compcache completely, do this: | ||
| + | |||
| + | rm -f / | ||
| + | |||
| + | The file compcache contains this line – which is what enables (and sizes) compcache: | ||
| + | |||
| + | | ||
| + | |||
| + | ==== Optimize Dnsmasq in NetworkManager ==== | ||
| + | |||
| + | create file | ||
| + | / | ||
| + | |||
| + | with this content: | ||
| + | |||
| + | all-servers | ||
| + | cache-size=10000 | ||
| + | addn-hosts=/ | ||
| + | neg-ttl=3600 | ||
| + | local-ttl=3600 | ||
| + | bogus-priv | ||
| + | |||
| + | for /etc/hosts use [[: | ||

