1,178 reputation
812
bio website solitr.com/blog
location
age
visits member for 4 years
seen Dec 8 at 19:35

I blog at Opinionated Programmer. You can play Solitr, my CoffeeScript solitaire game.

Follow me on Twitter.


Jan
25
comment Why don't EC2 ubuntu images have swap?
If you're going for 2GiB, then 1024*2048 seems correct.
Aug
23
comment Is it safe to make ssmtp SUID root?
I see -- thanks! (I'd upvote your answer, but serverfault won't let me at this point.)
Aug
1
comment Is it safe to make ssmtp SUID root?
I know what the article says (I wasn't claiming that it recommends SUID root), and I did see the "FreeBSD" in the title too -- it's kinda hard to miss. ;-) I also know it's generally better practice to use an unprivileged special user account, but my question is: Has ssmtp been written so that it's safe (barring security holes) to make it SUID root (like sendmail for instance)?
Jul
25
comment What is the fastest filesystem to use under Linux on EC2 for MySQL?
It's not about writing 1s, it's about writing anything at all (according to the slides I linked). Presumably Amazon lazily allocates the space.
Jul
8
comment 100% non-interactive Debian dist-upgrade
For those that only want to upgrade (rather than dist-upgrade) on Ubuntu, try the unattended-upgrade package.
Jun
23
comment Nice rsync on remote machine
You might consider using ionice as well, e.g. --rsync-path="ionice -c 3 nice rsync", though modern Linuxes automatically reduce the IO priority for nice'd processes (see the man page I linked).
Jun
11
comment Linux: Where to put the swap file
I personally don't really care about the last few percentage points of swap performance enough to take the extra complexity of a separate partition. If my server starts seriously swapping, I have a problem anyway. The swap space is more of a last-resort safety net in case some process starts gobbling up memory.
Jun
10
comment Do I even need a swap partition with Linux?
I don't think setting swappiness to 0 forces the kernel to not swap, it just makes it less eager to. Swap (if available) will still be used when the memory pressure goes too high.