28 Nov 2010, 2:31
Tags:
Comments Off

Twitter Weekly Updates for 2010-11-28

Powered by Twitter Tools

Tags:

22 Nov 2010, 15:14
Tags: , , , , , ,
Comments Off

Maximum allocated memory per process

A process in Linux can allocate memory without actually using it. This can create situations in which you have far more memory allocated than you have physically in the machine. We had one process that kept allocating memory without using it, until it ran into a barrier. Look at this munin graph to see what happened there:

Now I was puzzled by the 250GB limit. A 2.6 kernel should be able to allocate 1TB of memory on a machine, if it’s available. So why would it run out of allocatable space at 250GB? Took me a little while, but after a tip from jtopper on IRC, I looked at the vm sysctl documentation and found the overcommit_ratio setting. Which happened to be 50. And the machine just happened to have about 5GB of RAM. Well look there, 5×50 is 250GB… We found the reason why the graph stops increasing at about 250GB!

Tags: , , , , , ,

21 Nov 2010, 2:31
Tags:
Comments Off

Twitter Weekly Updates for 2010-11-21

Powered by Twitter Tools

Tags:

14 Nov 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-11-14

Powered by Twitter Tools

10 Nov 2010, 17:27
Tags: , , ,
Comments Off

[Ubuntu] Right-click on Intel Macbook

Finally found out how I can right-click on my Intel Macbook in Ubuntu via the touchpad. And it’s very simple, too, just double-tap the touchpad and it’s a right-click. Probably needs the pommed service from the MacTel Support PPA, but there you have it. A simple Google search gave me the answer, though. No idea why I didn’t just search for it before.

Tags: , , ,

9 Nov 2010, 20:50
Tags: , , ,
Comments Off

Puppet Tips&Tricks: Running apt-get update only when needed

A small example on how you can make apt-get update only run if a) the machine rebooted and b) something changed in /etc/apt. We use cron-apt to run an update every night, to keep the machine up-to-date, so this is really all we need. If you need to add a repository before you can install a package (say, you want to install a package from the Kumina Debian Repository), you can now do it in one puppet run, if you make sure your package resource depends on apt-get update. This is the code:

# Run apt-get update when anything beneath /etc/apt/ changes
exec { "apt-get update":
command => "/usr/bin/apt-get update && touch /tmp/apt.update",
onlyif => "/bin/sh -c '[ ! -f /tmp/apt.update ] || /usr/bin/find /etc/apt -cnewer /tmp/apt.update | /bin/grep . > /dev/null'",
}

7 Nov 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-11-07

Powered by Twitter Tools

 
  • Calender

    November 2010
    M T W T F S S
    « Oct   Dec »
    1234567
    891011121314
    15161718192021
    22232425262728
    2930  
  • RSS Delicious feed

  • Archives