Skip to content

Instantly share code, notes, and snippets.

@bkrepo
Last active March 16, 2017 05:05
Show Gist options
  • Save bkrepo/e02847852b39d2bbc07dcb27cdaf1b1d to your computer and use it in GitHub Desktop.
Save bkrepo/e02847852b39d2bbc07dcb27cdaf1b1d to your computer and use it in GitHub Desktop.
rc.local file for samba server testing
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
if [ -f /aafirstboot ]; then /aafirstboot start ; fi
echo 0 > /sys/devices/system/cpu/cpu0/online
echo 0 > /sys/devices/system/cpu/cpu1/online
echo 0 > /sys/devices/system/cpu/cpu2/online
echo 0 > /sys/devices/system/cpu/cpu3/online
ifconfig eth0 mtu 6975
echo f > /sys/class/net/eth0/queues/rx-0/rps_cpus
echo 5 > /proc/irq/143/smp_affinity_list
echo 6 > /proc/irq/144/smp_affinity_list
#/usr/local/samba/sbin/smbd -D -s /etc/samba/smb.conf
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment