prosess accouting
TRANSCRIPT
![Page 1: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/1.jpg)
Prosess accoutingIn 5 minuttes
![Page 2: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/2.jpg)
Installation
yum install psacct
chkconfig psacct on/etc/init.d/psacct start
![Page 3: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/3.jpg)
Example 1
CMD: lastcomm torsteinpidgin F torstein __ 0.00 secs Tue Aug 13 21:11chromium-browse torstein __ 0.00 secs Tue Aug 13 21:10chromium-browse S torstein __ 0.01 secs Tue Aug 13 21:10
1) Processname2) S -- command executed by super-userF -- command executed after a fork but without a following execD -- command terminated with the generation of a core fileX -- command was terminated with the signal SIGTERM3) User4) terminal (my local machine, you'll normally se pts/0 or something)5) How long the process took
![Page 4: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/4.jpg)
Example 2
CMD: lastcomm manman torstein pts/2 0.00 secs Tue Aug 13 21:07man F torstein pts/2 0.00 secs Tue Aug 13 21:07man F torstein pts/2 0.00 secs Tue Aug 13 21:07
![Page 5: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/5.jpg)
Example 3
CMD: sa 295 314.40re 0.58cp 0avio 21155k
11 18.82re 0.36cp 0avio 243665k chromium-browse* 47 138.16re 0.18cp 0avio 10821k ***other* 2 0.06re 0.02cp 0avio 236288k VC manager* 12 0.03re 0.01cp 0avio 34160k php 4 0.01re 0.01cp 0avio 1803k fuser 2 0.34re 0.00cp 0avio 28448k ubuntu-sso-logi 30 0.01re 0.00cp 0avio 1611k chromium-browse1) number of times executed?2) "real time" in minuttes3) system and user time in cpu minuttes4) ?5) cpu time avg core usage in 1k units
![Page 6: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/6.jpg)
Example 4
CMD: sa -uroot 0.00 cpu 1052k mem 0 io accton root 0.00 cpu 1110k mem 0 io acct root 0.00 cpu 1110k mem 0 io invoke-rc.d root 0.00 cpu 1110k mem 0 io acct.postinst root 0.00 cpu 1110k mem 0 io ureadahead.post root 0.11 cpu 5606k mem 0 io dpkg
processes per user.....
![Page 7: Prosess accouting](https://reader031.vdocument.in/reader031/viewer/2022030218/5885f9441a28ab864f8b7701/html5/thumbnails/7.jpg)
Example 5
CMD: sa -m 320 317.86re 0.59cp 0avio 19927ktorstein 114 91.58re 0.54cp 0avio 44128kroot 125 222.38re 0.04cp 0avio 4994kwww-data 48 0.09re 0.01cp 0avio 12880kprey 27 1.85re 0.00cp 0avio 3130ksmokeping 6 1.96re 0.00cp 0avio 3188k
total per user