Scaling TurnKey up to 64GB of RAM (via PAE)
There's been some discussion on the forum regarding PAE (Physical Address Extension), which allows you access up to 64GB of memory.
Last night I came across a blog post by Phillip Bailey (developer of smooth-sec: IDS/IPS appliance based on TurnKey) where he explained the steps required to enable PAE.
It's best to read his post for the full explanations, but just for reference:
Default kernel on a server with 8GB of RAM we can only see 3GB # free -m total Mem: 3072 Determine if the CPU has PAE support # grep pae /proc/cpuinfo flags : fpu vme de pse tsc msr pae flags : fpu vme de pse tsc msr pae Install the PAE Kernel # apt-get update # apt-get install linux-generic-pae Reboot, and verify the new kernel is being used # uname -a |grep pae Verify new kernel recognizes all our RAM # free -m total Mem: 8192

Question
Sir,
I have been away from linux for a while and brand new to TKL. I appreciate your work here, very impressive.
I was referred to this post by Jedmeister as a possible fix for what I'll call the acceleration issue. TKL Moodle install would not boot on ESXi4.1 U1 with acceleration turned on. I tried installing generic-pae but it did not help.
Based on a reccomendation I found here; https://bugs.launchpad.net/ubuntu/+source/linux/+bug/659422 , I installed 2.6.35-23-generic. This fixed the "acceleration" issue. I can now boot the system with acceleration turned on. My question for you is, how does this affect my TKL Moodle going forward? It seems that TKL is configured to update automatically? Does my manual kernel update affect this? Are there any other ramifications I should be aware of going forward?
I'm looking forward to using our TKL Moodle install and checking out other TKL offerings. Thanks again for the effort!
Geoff Brehm
Thanks
Thanks, Alon.. It works!
Assuming "Big Ram" how to systematically UP other settings?
I have a Joomla and a Magento instance each running with 2048mb Ram... Still it often seems that the base system's run more like a base 512mb install.
How might we systematically adjust PHP and MYSQL (and other settings) to take advantage of greater Ram Availability? Does this happen by itself or does tuning need to take place on TKL Appliances?
TKL appliance have some tweaks
But they are very generic and the appliances should be considered a usuable generic default, rather than in any way optimised for specific usage scenarios. Adjustments to specific appliances on specific setups are at the users descretion.
Someone may come along here with some ideas, but really you're probably better off seeking answers elsewhere. The Ubuntu forums would be a good starting point I would think (as TKL v11.x is based on Ubuntu 10.04 Server). Also the forums/mailing lists of the specific software would be good places to get ideas for tweaking the individual appliactions (as their usage of other things such as PHP and MySQL). Plus if all else fails google may help.
If you find something interesting that works for you, please post back though as others may be looking for something similar.
Post new comment