sentoo-sources kernel 'a BSD Accounting have problem in calculating ac_utime, ac_stime, ac_etime ac_utime, ac_stime, ac_etime report value that is twice larger timer than I expected. (and 'time' command output) Reproducible: Always Steps to Reproduce: 1. install acct package cat > t.c <<EOF main(){sleep(10);} EOF gcc t.c touch pacct.tmp accton pacct.tmp ./a.out accton sa --debug -f pacct.tmp Actual Results: AHZ -> 100 getpagesize() -> 4096 system_page_size == 4.00 ---------------------------------------------------------------------- acct entries ---------------------------------------------------------------------- +:accton 1 0.00u 0.00s 1.00e 0.00io 330.00mem +:a.out 1 0.00u 0.00s 2002.00e 0.00io 330.00mem Expected Results: AHZ -> 100 getpagesize() -> 4096 system_page_size == 4.00 ---------------------------------------------------------------------- acct entries ---------------------------------------------------------------------- +:accton 1 0.00u 0.00s 1.00e 0.00io 330.00mem +:a.out 1 0.00u 0.00s 1001.00e 0.00io 330.00mem ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ System Information: /etc/gentoo-release: Gentoo Base System version 1.4.2.9 CPU: AMD Duron(tm) Processor tested kernel: gentoo-sources 2.4.20-r5 (BSD Process accounting enabled) (Sorry for my poor English)
It seems gentoo-specific ... I also tested it under debian(x86), redhat(x86) and they give expected result.
recompile the kernel with jiffies = 100 Jay