This HOWTO explains the steps required to configure a user's cpu share automatically when he/she logs in. This has been verified to work on a Redhat distribution. Note : This HOWTO is a *hack* to get things working quickly. In particular it doesn't follow standards like LSB. 1. Create a file /etc/user_cpu_share.conf with this format: [uid] [cpu_share] Ex: 512 1024 #user vatsa 514 512 #user guest 2. Create a script, named "kernel.agent" in /etc/hotplug directory as follows. Make that script executable and owned by root. #!/bin/sh # # kernel hotplug agent for 2.6 kernels # # ACTION=add # DEVPATH=/kernel/uids/[uid] # cd /etc/hotplug . ./hotplug.functions case $ACTION in add) uid=${DEVPATH##*/} line=`grep -w $uid /etc/user_cpu_share.conf` if [ $? -eq 0 ] then cpu_share=`echo $line | awk '{print $2}'` echo $cpu_share > /sys/$DEVPATH/cpu_share fi ;; *) ;; esac