Monthly Archives: June 2011

Shared Memory Tuning

To see all your shared memory settings, execute:

ipcs -lm

To check your maximum memory shared segment, run:

cat /proc/sys/kernel/shmmax

Mine showed up as ’33554432′ which is 32MB. That’s pretty small especially if eAccelerator is installed on your webserver. So I changed it to 1GB which is ’1073741824′.

To change SHMMAX without needing to reboot (yay) execute:

echo 1073741824 > /proc/sys/kernel/shmmax

Or you can use…

sysctl -w kernel.shmmax=1073741824

To make the change permanent execute:

echo "kernel.shmmax=1073741824" >> /etc/sysctl.conf

Pat yourself after.

CloudFlare’s New (And Improved) Auto-Minify

So CloudFlare rolled out their all new (and improved) Auto Minify feature. Here’s my results with all three turned on. Oh and check out how pretty it is (yes code can be beautiful to look at).

Direct domain (1) = CF off and the one without direct (2) is CF on.

All in all, direct.joinpgn.com had 1544 lines while joinpgn.com had 1270. Most of my JS and CSS have been minified too even before CF touches it. What’s left? Right. Rocket Launcher! Do CloudFlare! Fix it!

WTF PayPal Money Market

I created a PayPal account several years ago because I thought it was ‘cool’ (hint: teenager) and after a couple of months I saw another ‘cool’ thing which is the PayPal Money Market fund. Back then, it had a yield of around 5%. I the tried to invest around 1/4 of my earnings to PayPal thinking that going ‘e’ is the way to go and is the future. After a couple of years I slacked off in putting in money because well…hobbies changed and I WANTED MORE STUFF (hehehe). So my investments were mostly Roth IRA and 401k. Fast forward to 2011 and I just use my PayPal account to purchase online goods as opposed to something I’m looking forward too after retirement. It turns out that my choice to not include PayPal as part of my retirement plan was correct as PayPal’s Money Market fund took a HUGE HUGE HUGE dip just right after I stopped putting in money every month. Just look at the screenshot from Bloomberg.

Now, I am by no means an expert and I’m probably looking at this scenario on my side only but seriously…damn. The financial crisis of 2008 really hit PayPal hard and most of the other Money Market funds out there.