Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
linux:ubuntu [2009/05/25 00:35]
127.0.0.1 external edit
linux:ubuntu [2014/03/13 09:13]
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:
  
 +<code>
 +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:0:484752)
 +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:0:484760)
 +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:0:484768)
 +</code>
 +
 +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 /usr/share/initramfs-tools/conf.d/compcache && update-initramfs -u
 +
 +The file compcache contains this line – which is what enables (and sizes) compcache:
 +
 +   COMPCACHE_SIZE="25%"
 +
 +=== Optimize Dnsmasq in NetworkManager ===
 +
 +create file
 +/etc/NetworkManager/dnsmasq.d/dnsmasq.conf 
 +
 +with this content:
 +
 +  all-servers
 +  cache-size=10000
 +  addn-hosts=/etc/hosts
 +  neg-ttl=3600
 +  local-ttl=3600
 +  bogus-priv
 +
 +for /etc/hosts use [[:spam|Hosts adblocker]]
linux/ubuntu.txt · Last modified: 2014/09/26 12:28 by zagi
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready