Revision tags: release/7.2.0_cvs, release/7.2.0 |
|
#
9c797940 |
| 13-Apr-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
89f28b1b |
| 12-Apr-2009 |
Robert Watson <rwatson@FreeBSD.org> |
Remove conditionally compiled time counter statistics; tools like DTrace, kernel profiling, etc, can provide this information without the overhead.
MFC after: 3 days Suggested by: bde
|
#
1829d5da |
| 12-Mar-2009 |
Warner Losh <imp@FreeBSD.org> |
Update the projects tree to a newer FreeBSD current.
|
#
83160d14 |
| 08-Mar-2009 |
Robert Watson <rwatson@FreeBSD.org> |
By default, don't compile in counters of calls to various time query functions in the kernel, as these effectively serialize parallel calls to the gettimeofday(2) system call, as well as other kernel
By default, don't compile in counters of calls to various time query functions in the kernel, as these effectively serialize parallel calls to the gettimeofday(2) system call, as well as other kernel services that use timestamps.
Use the NetBSD version of the fix (kern_tc.c:1.32 by ad@) as they have picked up our timecounter code and also ran into the same problem.
Reported by: kris Obtained from: NetBSD MFC after: 3 days
show more ...
|
Revision tags: release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0 |
|
#
237fdd78 |
| 16-Mar-2008 |
Robert Watson <rwatson@FreeBSD.org> |
In keeping with style(9)'s recommendations on macros, use a ';' after each SYSINIT() macro invocation. This makes a number of lightweight C parsers much happier with the FreeBSD kernel source, inclu
In keeping with style(9)'s recommendations on macros, use a ';' after each SYSINIT() macro invocation. This makes a number of lightweight C parsers much happier with the FreeBSD kernel source, including cflow's prcc and lxr.
MFC after: 1 month Discussed with: imp, rink
show more ...
|
Revision tags: release/7.0.0_cvs, release/7.0.0 |
|
#
6b4d690c |
| 17-Feb-2008 |
Warner Losh <imp@FreeBSD.org> |
Fix typo in comment.
|
Revision tags: release/6.3.0_cvs, release/6.3.0 |
|
#
bedff79a |
| 02-Jan-2008 |
David E. O'Brien <obrien@FreeBSD.org> |
Note what is too {short,long}.
|
#
041b706b |
| 04-Jun-2007 |
David Malone <dwmalone@FreeBSD.org> |
Despite several examples in the kernel, the third argument of sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int.
Remove the instances
Despite several examples in the kernel, the third argument of sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int.
Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples.
In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
show more ...
|
Revision tags: release/6.2.0_cvs, release/6.2.0 |
|
#
776fc0e9 |
| 04-Aug-2006 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Commit the results of the typo hunt by Darren Pilgrim. This change affects documentation and comments only, no real code involved.
PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfr
Commit the results of the typo hunt by Darren Pilgrim. This change affects documentation and comments only, no real code involved.
PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfreak org> Tested by: md5(1) MFC after: 1 week
show more ...
|
#
93ef14a7 |
| 16-Jun-2006 |
David Malone <dwmalone@FreeBSD.org> |
Add a kern.timecounter.tc sysctl tree that contains the mask, frequency, quality and current value of each available time counter.
At the moment all of these are read-only, but it might make sense t
Add a kern.timecounter.tc sysctl tree that contains the mask, frequency, quality and current value of each available time counter.
At the moment all of these are read-only, but it might make sense to make some of these read-write in the future.
MFC after: 3 months
show more ...
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
59048707 |
| 15-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Disable the "cputick increased..." message now that the dust has settled.
|
#
fef527ee |
| 09-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Oops, forgot newline.
|
#
6cda760f |
| 09-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
silence cpu_tick calibration and notice only (under bootverbose) when the frequency increases.
|
#
88ca07e7 |
| 07-Mar-2006 |
John Baldwin <jhb@FreeBSD.org> |
Style nit.
|
#
fccfcfba |
| 04-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add missing cast.
|
#
5b51d1de |
| 04-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
More detailed logging if timestepwarnings are enabled.
|
#
301af28a |
| 02-Mar-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Suffer a little bit of math every 16 second and tighten calibration of cpu_ticks to the low side of PPM.
|
#
e8444a7e |
| 11-Feb-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
CPU time accounting speedup (step 2)
Keep accounting time (in per-cpu) cputicks and the statistics counts in the thread and summarize into struct proc when at context switch.
Don't reach across CPU
CPU time accounting speedup (step 2)
Keep accounting time (in per-cpu) cputicks and the statistics counts in the thread and summarize into struct proc when at context switch.
Don't reach across CPUs in calcru().
Add code to calibrate the top speed of cpu_tickrate() for variable cpu_tick hardware (like TSC on power managed machines).
Don't enforce monotonicity (at least for now) in calcru. While the calibrated cpu_tickrate ramps up it may not be true.
Use 27MHz counter on i386/Geode.
Use TSC on amd64 & i386 if present.
Use tick counter on sparc64
show more ...
|
#
5b1a8eb3 |
| 07-Feb-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Modify the way we account for CPU time spent (step 1)
Keep track of time spent by the cpu in various contexts in units of "cputicks" and scale to real-world microsec^H^H^H^H^H^H^H^Hclock_t only when
Modify the way we account for CPU time spent (step 1)
Keep track of time spent by the cpu in various contexts in units of "cputicks" and scale to real-world microsec^H^H^H^H^H^H^H^Hclock_t only when somebody wants to inspect the numbers.
For now "cputicks" are still derived from the current timecounter and therefore things should by definition remain sensible also on SMP machines. (The main reason for this first milestone commit is to verify that hypothesis.)
On slower machines, the avoided multiplications to normalize timestams at every context switch, comes out as a 5-7% better score on the unixbench/context1 microbenchmark. On more modern hardware no change in performance is seen.
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
e452573d |
| 20-Sep-2005 |
Andre Oppermann <andre@FreeBSD.org> |
Start time_uptime with 1 instead of 0.
Discussed with: phk
|
#
5b1c0294 |
| 07-Sep-2005 |
David E. O'Brien <obrien@FreeBSD.org> |
Forward declaring static variables as extern is invalid ISO-C. Now that GCC can properly handle forward static declarations, do this properly.
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
f8385624 |
| 26-Mar-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
s/ENOTTY/ENOIOCTL/
|
Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0 |
|
#
a7bc3102 |
| 12-Oct-2004 |
Peter Wemm <peter@FreeBSD.org> |
Put on my peril sensitive sunglasses and add a flags field to the internal sysctl routines and state. Add some code to use it for signalling the need to downconvert a data structure to 32 bits on a
Put on my peril sensitive sunglasses and add a flags field to the internal sysctl routines and state. Add some code to use it for signalling the need to downconvert a data structure to 32 bits on a 64 bit OS when requested by a 32 bit app.
I tried to do this in a generic abi wrapper that intercepted the sysctl oid's, or looked up the format string etc, but it was a real can of worms that turned into a fragile mess before I even got it partially working.
With this, we can now run 'sysctl -a' on a 32 bit sysctl binary and have it not abort. Things like netstat, ps, etc have a long way to go.
This also fixes a bug in the kern.ps_strings and kern.usrstack hacks. These do matter very much because they are used by libc_r and other things.
show more ...
|
#
d8e8b675 |
| 14-Aug-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add some KASSERTS.
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
1e0e79c9 |
| 04-Mar-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Just because the timecounter reads the same value on two samples after each other doesn't mean that nothing happened.
|