I came across this blog post about MySQL swapping to disk. If you have issues with MySQL server swapping to disk, even with a large cache this blog post is for you.
The Problem:
MySQL server swapping large chunks of data into swap and then using reclaimed memory to cache more data.
The Solution:
Swappiness!
Swappiness defines how much a system can swap, the higher the number the more swapping happens, the number can be between 0 and 100. 0 is no swapping (we don't want that) and 100 is swap whenever possible thereby keeping memory clear.
# check current swappiness
/sbin/sysctl -a | grep swappiness
# set swappiness to something low, not 0
vm.swappiness = 1
# apply the settings right now
/sbin/sysctl -p
More Info:
http://www.incutio.com/blog/2009/11/27/mysql-swapping-resolution/
The radical systems blog is a technology blog focused on information technology topics. We do great tech blogging.
Monday, December 20, 2010
Tuesday, December 14, 2010
How to make money on the Internet
Came across this guide on how to make money on the Internet, had to share.
http://9gag.com/gag/58907/
http://9gag.com/gag/58907/
Tuesday, December 7, 2010
joomla contact form error 500
The Joomla contact form has been known to present users with an "error 500" message, particularly when using SEF plugins such as Artio.
If you have a missing "option" field in your contact form, you'll have to add it into your contact form template for Joomla.
Edit the file: templates/<your_template>/html/com_contact/contact/default_form.php
Add this:
<input type="hidden" name="option" value="com_contact" />
right before this:
<input type="hidden" name="view" value="contact" />
Templates should include this by default, but sometimes it's left out. Without the hidden option field you're going to run into error 500 problems.
If you have a missing "option" field in your contact form, you'll have to add it into your contact form template for Joomla.
Edit the file: templates/<your_template>/html/com_contact/contact/default_form.php
Add this:
<input type="hidden" name="option" value="com_contact" />
right before this:
<input type="hidden" name="view" value="contact" />
Templates should include this by default, but sometimes it's left out. Without the hidden option field you're going to run into error 500 problems.
Labels:
joomla
Sunday, December 5, 2010
showing the size of files in unix - with nice output
find ./ -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
Wednesday, December 1, 2010
How to show the size of all folders within a certain directory
du -sh /path/to/directory/*
Labels:
unix,
unix commands
Subscribe to:
Posts (Atom)