Age | Commit message (Collapse) | Author |
|
segments to the kernel, ld (2.15), and ld.so. Tested on alpha, amd64,
i386, macppc, and sparc64 (thanks naddy, mpi, and okan!).
Idea discussed for some time; committing now for further testing.
ok deraadt
|
|
an MI file, <sys/syscall_mi.h>, correcting inconsistencies and the
handling when copyin() of arguments fails.
Tested on i386, amd64, sparc64, and alpha (thanks naddy@)
Any issues with other platforms will be fixed in tree.
header name from millert@; ok miod@
|
|
profil() by moving P_PROFIL from proc->p_flag to process->ps_flags with
matching adjustment in fork1() and exit1()
ok matthew@
|
|
chain (m_nextpkt), so the mbuf passed to it must be disconnected completely
from the socket buffer's chains.
Problem noticed by yasuoka@; tweak from krw@, ok deraadt@
|
|
|
|
|
|
|
|
|
|
hibernate info.
ok mlarkin@ stsp@
|
|
ok mlarkin
|
|
corruption seen earlier. This makes hibernate much slower but seems to fix
the corruption problems seen on all machines we've tested on.
|
|
ref-count handling under handling, or blambert@ is messing with my head
|
|
|
|
rlimit, then a write that would take it over the limit should be
clamped, making it a partial write.
ok beck@
|
|
can be suspended and/or decrement pr->ps_singlecount if necessary.
With that added, the call the other direction needs to use its own
flag (EXIT_THREAD_NOCHECK) to avoid looping.
problem diagnosed from a hang naddy@ hit; ok kettenis@
|
|
the scheduler.
ok hasbaert@. deraadt@
|
|
ok matthew@ benno@
|
|
priority of the current running process.
In amd64 a call to need_resched() sends an IPI to the other cpu.
This fixes aja@ problem where he would move the mouse and see 60000
IPIs being sent.
Thanks to mikeb@ for bringing that subject up tuesday.
Actually found this after inquiring guenther@ about some changes in
mi_switch().
ok guenther@ aja@
|
|
tvtohz() so that the rounding is correct and we don't time out a tick early
ok claudio@
|
|
socket is no longer affected by option SOCKET_SPLICE we can simplyfy the
code. OK bluhm@
|
|
before changing p_stat to SDEAD
ok pirofti@
|
|
OK guenther@ and deraadt@
|
|
ok blambert@ krw@ tedu@ miod@
|
|
sched_stop_secondary_cpus() leaves us on the only cpu which is left.
ok kettenis haesbaert guenther
|
|
not against the number bit / number of fds in the select set.
ok guenther@
|
|
to read a hibernate image should restore the spl
ok mlarkin
|
|
ok deraadt@
|
|
file locks. c.f. regress/sys/kern/kqueue/kqueue-flock.c
ok krw@
|
|
ok beck@
|
|
allocation failed
ok mlarkin
|
|
Fix some incorrect/old comments.
ok deraadt@
|
|
Having done that, dupfdopen() has to handle a possible race.
ok matthew@ krw@
|
|
sosplice() to move the data already there, it might sleep in
m_copym().
Another process must not unsplice during that sleep, so also lock
the receive buffer when sosplice is called with fd -1.
The same sleep can allow network interrupts to modify the socket
buffer. So use sbsync() to write back modifications within the
loop instead of fixing the socket buffer after the loop.
OK claudio@
|
|
i/o will not mix with regular i/o so it can only be used in the hibernate
path.
ok deraadt@ mlarkin@
|
|
|
|
so that it can't get a signal while still running on the parent thread's
stack. Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added. This is an ABI change, so switch syscall
numbers and bump lib majors this time.
ok deraadt@ matthew@
|
|
|
|
ok deraadt@
|
|
to diff against FreeBSD's.
From Brad; no object file change on amd64.
|
|
I need this for my diffs.
ok guenther@
|
|
attached to and not just the thread, which can go away.
Problem observed by jsg@; ok jsg@ matthew@
|
|
rthreads fix. Update to the correct one.
|
|
It was useful for tracking down the last devices which weren't deleting
their timeouts on suspend and recreating them on resume, but it's too
verbose to keep around.
noted by deraadt@
|
|
silently changed sysctl kern.saved_ids from returning 1 to 0.
ok millert
|
|
- make sure the buffer reclaiming loop in buf_get() actually does something
but spin, if `backoffpages' is nonzero and all free queues have been drained.
- don't forget to set a poor man's condition variable to nonzero before
tsleeping on it in bufadjust(), otherwise you'll never get woken up.
- don't be too greedy and reassing backoffpages a large amount immediately
after bufadjust() has been called.
This fixes reproduceable hangs seen during heavy I/O (such as `make install'
of many large files, e.g. run in /usr/src/lib with NOMAN=) on systems with
a challenged number of pages (less than a few thousands, total).
Part of this is temporary bandaid until a better pressure logic is devised,
but it's solving an immediate problem. Been in snapshots for a solid month.
|
|
sysctl() to be per-process instead of per-thread. This means the
filedesc table has to really be per-process instead of per-thread,
so make it an error for the linux clone() emulation to try to do
otherwise. This removes pointless duplication in fstat's output.
requested by jsing@ and deraadt@, ok matthew@ deraadt@
|
|
ok miod blambert
|
|
ok matthew miod deraadt
|
|
first, that is being removed) rather than c_cl (the last).
ok matthew miod deraadt
|
|
just the realtime clock, triggering and adjusting timeouts to reflect that.
ok matthew@ deraadt@
|