Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22968 - gentoo-sources kernel seems notacct
Summary: gentoo-sources kernel seems notacct
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-developer
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 21:39 UTC by Jung-min Lee
Modified: 2003-06-27 13:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jung-min Lee 2003-06-16 21:39:30 UTC
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)
Comment 1 Jung-min Lee 2003-06-16 21:40:33 UTC
It seems gentoo-specific ...    I also tested it under debian(x86), redhat(x86) and they give expected result.
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-06-27 13:41:13 UTC
recompile the kernel with jiffies = 100

Jay