![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJz4ZIRM3o-CZIfFeKsZI0dPyDZKVyP2lBUpvVSAHTZ_q00tT91y1WK7AF5upWWos_5Gn0_rbmgzyBzDnYkoZ5HtVRtFbObSdTzHG02AGwH6H__X1QquAyAe4buPdNuFKi11LZ_q9YvZ8/s400/ubuntu_boot.png)
To install botchart type in console: sudo apt-get install bootchart
Bootchart collects various statistics from /proc utilising a shell script which collects the info. After the next boot you will find detailed performance chart created by java application showing your boot in /var/log/bootchart directory and also a tarball containing logs.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinIXMAxlRGAMdj9jTo9d_Gehv2vLMP6TyquTMAwVSOrh3wNqhAPNhiUEL9HqZhFxqqlRcHZ3dJfCyIv88FoetAoJB97OqSDNO2lLiFmzdi2AovWd_7wlLiplqCeN672BHlXDll69cMuw8/s200/ubuntu-jaunty-20090914-1.png)
At first use your favourite editor to edit crontab:
To edit crontab with nano:
sudo crontab -e
To edit crontab with vi:
export EDITOR=vi; sudo crontab -e
Add this line to root crontab if you want to delete files older than 30 days:
@reboot /usr/bin/find /var/log/bootchart -type f -mtime +30 -exec rm {} \;
To find out more about bootchart - check the bootchart web at http://www.bootchart.org/
No comments:
Post a Comment