You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: 'Forget 200 lines, Red Hat speeds up Linux with 4 lines of code - InternetNews:The Blog - Sean Michael Kerner'
---
<p>Not only that. Userspace code. I’ll have to try this on my Linux box.</p>
<blockquote>
<p><span>To his credit Poettering did come back with a response to prove Torvalds wrong. Poettering provided a non kernelspace patch that speeds up Linux systems. The patch involved a simple edit of a users <em>~/.bashrc file </em>with four new lines of code<em>.</em><br/><br/><pre> if [ "$PS1" ] ; then <br/> mkdir -m 0700 /sys/fs/cgroup/cpu/user/$$<br/> echo $$ > /sys/fs/cgroup/cpu/user/$$/tasks<br/> fi<br/>Then, as the superuser do this:<br/><br/> mount -t cgroup cgroup /sys/fs/cgroup/cpu -o cpu<br/> mkdir -m 0777 /sys/fs/cgroup/cpu/user</pre>
</span></p>
</blockquote>
<a href="http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed.html">Forget 200 lines, Red Hat speeds up Linux with 4 lines of code - InternetNews:The Blog - Sean Michael Kerner</a>
<hr>imported from <a href="http://folkwolf.tumblr.com/post/2430512163">Tumblr</a>