login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
17
Re: [PATCH 1/2] Add scaled time to taskstats based process accounting
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Michael Neuling
Subject:
Re: [PATCH 1/2] Add scaled time to taskstats based process accounting
Date: Thursday, August 16, 2007 - 9:56 pm
In message <46C52872.9060408@linux.vnet.ibm.com> you wrote:
quoted text
> Michael Neuling wrote: > >> I'd also request for you to add a cpu_scaled_run_real_total for use > >> by delay accounting. cpu_scaled_run_real_total should be similar in > >> functionality to cpu_run_real_total. > > > > Will do. Should I add cpu_scaled_run_real_total to the end of the > > struct taskstat, or next to cpu_run_real_total? > > > > Please add it to the end, that helps maintain binary compatibility > across all versions of taskstats.
OK
quoted text
> > >>> /* Note: this timer irq context must be accounted for as well. */ > >>> - if (user_tick) > >>> + if (user_tick) { > >>> account_user_time(p, jiffies_to_cputime(1)); > >>> - else > >>> + account_user_time_scaled(p, jiffies_to_cputime(1)); > >>> + } else { > >>> account_system_time(p, HARDIRQ_OFFSET, jiffies_to_cputime(1)); > >>> + account_system_time_scaled(p, jiffies_to_cputime(1)); > >>> + } > >> I am a little confused here, scaled accounting and regular accounting > >> go hand in hand? > > > > We need to account for scaled and normal time in this generic code. > > All other calls to account_(user|system)_time are in arch code. > > > > So the assumption here is that we ran at full frequency during > this time, is my understanding correct?
Yes. I guess we could keep a per CPU last scaling factor for this case (similar to what we are storing in the POWERPC paca) Mikey -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] Add scaled time to taskstats based process acc ...
, Michael Neuling
, (Thu Aug 16, 12:09 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Balbir Singh
, (Thu Aug 16, 12:26 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Linas Vepstas
, (Thu Aug 16, 9:38 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Paul Mackerras
, (Thu Aug 16, 3:22 pm)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Michael Neuling
, (Thu Aug 16, 5:23 pm)
[PATCH 1/2] Add scaled time to taskstats based process acc ...
, Michael Neuling
, (Thu Aug 16, 6:09 pm)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Balbir Singh
, (Thu Aug 16, 9:47 pm)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Michael Neuling
, (Thu Aug 16, 9:56 pm)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Linas Vepstas
, (Fri Aug 17, 10:10 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Andrew Morton
, (Fri Aug 17, 11:59 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Balbir Singh
, (Fri Aug 17, 12:08 pm)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Balbir Singh
, (Sun Aug 19, 1:56 am)
Re: [PATCH 1/2] Add scaled time to taskstats based process ...
, Michael Neuling
, (Sun Aug 19, 6:12 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
James Bottomley
Re: [PATCH -mm 1/2] scsi: remove dma_is_consistent usage in 53c700
David Miller
Re: NO_HZ: timer interrupt stuck
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
frantisek holop
Re: mount ffs as msdos, system hangs
Colocation donated by:
Syndicate