Kernel patch speeds up Linux

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#16 Post by sc0ttman »

Would this work as a .pet? (using a pinstall.sh script):

Code: Select all

#!/bin/bash
[ ! -e /etc/rc.d/rc.local ] && exit 0

# apply changes in rc.local
echo '
# speedup
mkdir -p /dev/cgroup/cpu
mount -t cgroup cgroup /dev/cgroup/cpu -o cpu
mkdir -m 0777 /dev/cgroup/cpu/user
"/usr/local/sbin/cgroup_clean" > /dev/cgroup/cpu/release_agent
' >> /etc/rc.d/rc.local

# make rc.local executable
[ ! -x /etc/rc.d/rc.local ] && chmod +x /etc/rc.d/rc.local 

# apply changes in /root/.bashrc
echo '
if [ "$PS1" ] ; then
	mkdir -p -m 0700 /dev/cgroup/cpu/user/$$ > /dev/null 2>&1
	echo $$ > /dev/cgroup/cpu/user/$$/tasks
	echo "1" > /dev/cgroup/cpu/user/$$/notify_on_release
fi
' >> /root/.bashrc

# create /usr/local/sbin/cgroup_clean if needed
echo '
#!/bin/sh
rm -rf /dev/cgroup/cpu/user/$*
' > /usr/local/sbin/cgroup_clean 

# make it executable
chmod +x /usr/local/sbin/cgroup_clean 

# run it, so its applied immediately
exec /etc/rc.d/rc.local &

REPLY=""
Xdialog --title "Speed up ting" --msgbox "The speed up thing should be installed and running.\n\nDo you want to check?" 0 0
REPLY=$?
[ "$REPLY" = 0 ] && rvxt -e ls /dev/cgroup/cpu/user/ &

exit 0
I'm gonna try it and test :?

EDIT: I get the

Code: Select all

mount:  unknown filesystem type 'cmount'
I'm using kernel 2.6.25.16

:(
Attachments
speedup-installer.pet
the above code, self installer, may work for someone??
(813 Bytes) Downloaded 362 times
Last edited by sc0ttman on Fri 03 Dec 2010, 17:02, edited 4 times in total.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#17 Post by DaveS »

There is another thread for this here http://murga-linux.com/puppy/viewtopic. ... 178a3bf070
but it is inconclusive
Spup Frugal HD and USB
Root forever!

Post Reply