| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
|
|
|
| |
Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our
sources:
-sysctl_vm_zone SYSCTL_HANDLER_ARGS
+sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
|
|
|
|
| |
Remove ~60 unneeded #include <sys/malloc.h>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the public interface more systematically named.
Remove the alternate method, it doesn't do any good, only ruins performance.
Add counters to profile the usage of the 8 access functions.
Apply the beer-ware to my code.
The weird +/- counts are caused by two repocopies behind the scenes:
kern/kern_clock.c -> kern/kern_tc.c
sys/time.h -> sys/timetc.h
(thanks peter!)
|
|
|
|
| |
Approved by: jkh
|
|
|
|
| |
uptime.
|
|
|
|
| |
that one comment was attached to null code.
|
|
|
|
|
|
|
|
| |
and extend. The new function containing the code is named schedclock()
as in NetBSD, but it has slightly different semantics (it already handles
incrementation of p->p_cpticks, and it should handle any calling frequency).
Agreed with in principle by: dufault
|
| |
|
|
|
|
|
|
| |
NOTE: This will break building ntpd until ntpd has been upgraded to also
support draft 05. People that want to build ntpd in the meantime can
get patches from me.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
used for timecounting. The possible values are the names of the
physically present harware timecounters ("i8254" and "TSC" on i386's).
Fixed some nearby bitrot in comments in <sys/time.h>.
Reviewed by: phk
|
| |
|
|
|
|
|
|
| |
timecounter as well
Asked for by: bde, jhay
|
|
|
|
| |
Detected by: Reg Clemens <reg@dwf.com>
|
|
|
|
| |
Noticed by: bde
|
|
|
|
| |
Noticed by: bde
|
|
|
|
|
|
|
|
| |
FLL support in hardpps()
Various magic shuffles and improved comments
Style fixes from Bruce.
|
|
|
|
|
|
|
| |
This code is backwards compatible with the older "microkernel" PLL, but
allows ntpd v4 to use nanosecond resolution. Many other improvements.
PPS_SYNC and hardpps() are NOT supported yet.
|
|
|
|
|
| |
of kilobytes. Its definition for each architecture could be optimized to
avoid potential numerical overflows.
|
|
|
|
|
|
|
| |
is the preparation step for moving pmap storage out of vmspace proper.
Reviewed by: Alan Cox <alc@cs.rice.edu>
Matthew Dillion <dillon@apollo.backplane.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
can set if your hw/sw produces the "calcru negative..." message.
Setting the alternate method (sysctl -w kern.timecounter.method=1)
makes the the get{nano|micro}*() functions call the real thing at
resulting in a measurable but minor overhead.
I decided to NOT have the "calcru" change the method automatically
because you should be aware of this problem if you have it.
The problems currently seen, related to usleep and a few other corners
are fixed for both methods.
|
|
|
|
|
|
|
|
|
|
|
| |
out interrupts for too long. If you still see the "calcru: negative
time..." message you can increase NTIMECOUNTER (see LINT).
Sideeffect is that a timecounter is required to not wrap around in
less than (1 + delta) seconds instead of the (1/hz + delta) required
until now.
Many thanks to: msmith, wpaul, wosch & bde
|
|
|
|
|
|
| |
with a NULL curproc.
Originally by: Tor Egge (IIRC)
|
| |
|
|
|
|
| |
about unused variables, labels and other lint.
|
|
|
|
|
|
| |
If you have problems with the "calcru" messages and processes being
killed for excessive cpu time, try to increase the NTIMECOUNTER
#define and report your findings.
|
|
|
|
|
|
|
| |
compiler that we know what we're doing (the value returned has already
been restricted to int ranges).
Reviewed by: bde
|
|
|
|
|
|
|
| |
Remove old disk statistics variables.
vfs_bio.c:
Enable bowrite now that B_ORDERED works for all buffer devices.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
tens of milliseconds out in the future we end up the right place with
a subweeniesecond error.
|
|
|
|
|
|
| |
not nanotime(); Otherwise we end up in 2026...
Fix the arg to dummy_get_timecount()
|
|
|
|
| |
Urged by: bde
|
|
|
|
|
| |
with latch based PPS implementations. The client that uses it will
be committed after more testing.
|
|
|
|
| |
figure out which instance to wount with.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clean up (or if antipodic: down) some of the msgbuf stuff.
Use an inline function rather than a macro for timecounter delta.
Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.
Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()
This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.
WARNING: Programs which muck about with struct proc in userland
will have to be fixed.
Reviewed, but found imperfect by: bde
|
|
|
|
|
|
| |
function.
Reviewed, but not entirely approved by: bde
|
|
|
|
|
|
| |
s/microruntime/microuptime/g
Reviewed by: bde
|
|
|
|
| |
Mostly Submitted by: bde
|
|
|
|
|
|
| |
more consistent.
OK'ed by: bde
|
|
|
|
| |
fix the itimer(REAL) handling.
|
|
|
|
| |
Use tvtohz() a place where it fits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.
* move "runtime" into struct proc. This helps fix the calcru()
problem in SMP.
* kill mono_time.
* add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!)
* nanosleep, select & poll takes long sleeps one day at a time
Reviewed by: bde
Tested by: ache and others
|
| |
|
| |
|