Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 05:13
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Kernel patch speeds up Linux
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2373
Location: UK

PostPosted: Fri 03 Dec 2010, 12:37    Post subject:  

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

Code:
#!/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 Confused

EDIT: I get the
Code:
mount:  unknown filesystem type 'cmount'

I'm using kernel 2.6.25.16

Sad
speedup-installer.pet
Description  the above code, self installer, may work for someone??
pet

 Download 
Filename  speedup-installer.pet 
Filesize  813 Bytes 
Downloaded  222 Time(s) 

Last edited by sc0ttman on Fri 03 Dec 2010, 13:02; edited 4 times in total
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Fri 03 Dec 2010, 12:42    Post subject:  

There is another thread for this here http://murga-linux.com/puppy/viewtopic.php?p=469114&sid=502a87c9d5f6cb07e6c19e178a3bf070
but it is inconclusive

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [17 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0498s ][ Queries: 12 (0.0089s) ][ GZIP on ]