Code: Select all
sudo apt-get -y purge libx11-6 libgtk-3-common xkb-data lxde-icon-theme raspberrypi-artwork penguinspuzzle
# Needed by omxplayer so add back...
apt-get -y install libfreetype6
It depends on what else is needed for this script(loging, internet connection, time from ntp, kernel modules ...).Does anyone know of any other services we can scrap from the boot sequence? I only need to run a simple python script on a headless pi.
Code: Select all
/boot/cmdline.txt
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootflags=commit=120,data=writeback elevator=deadline noatime nodiratime data=writeback rootwait quiet
Code: Select all
/etc/sysctl.conf:
vm.dirty_background_ratio = 20
vm.dirty_expire_centisecs = 0
vm.dirty_ratio = 80
vm.dirty_writeback_centisecs = 1200
vm.overcommit_ratio = 2
vm.laptop_mode = 5
vm.swappiness = 10
Code: Select all
sysv-rc-conf
In my case it's a mental estimate of how long it takes to start responding it pings.shuckle wrote:How do you measure boot time? 10 secs sounds unbelievable. Mine is closer to 30 secs. But we should agree how to measure it.
Have a look in /etc/rc1.d 2.d 3.d etc etc and you will see symlinks that starts with either a S or a KNarf03 wrote:Hi all, how do we know which file Pi will execute during boot ? ie /etc/rc.local only print "My IP address is ...", what else it will execute ? ie if i install MySQL server and it auto-start, but im not sure which file do call it.
Code: Select all
$ dmesg | grep full-duplex
[ 18.245983] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Code: Select all
$ dmesg | grep led0
[ 3.963521] Registered led device: led0
Did you try "initial_turbo=30" and see what effect that has? It should mean the Pi is overclocked from the very beginning, rather than the overclock kicking in near the end of the boot sequence.shuckle wrote:I tested different ways to improve boot time and noticed the following:
Adding noatime nodiratime to /boot/cmdline.txt improved about 0.1 sec
Adding quiet to /boot/cmdline.txt improved about 1.0 sec
Overclocking improved about 0.1 sec
Total improvment with all these settings was about 1.1 secs
I set loglevel=0 to /boot/cmdline.txt, but that did not cause any effects to anywhere. I am surprised. How should it be done then?aaa801 wrote:turn off or decrease the system log level, its set to log EVERYTHING, and on sd card speed is really noticeable
http://linux.die.net/man/5/syslog.confshuckle wrote:I set loglevel=0 to /boot/cmdline.txt, but that did not cause any effects to anywhere. I am surprised. How should it be done then?aaa801 wrote:turn off or decrease the system log level, its set to log EVERYTHING, and on sd card speed is really noticeable
Yes, i did. I am testing booting speed, so this comes automatically and often.sdjf wrote:Did you reboot after changing the log level? the new setting will not take effect until after reboot. but sync first:
sync
reboot