Age | Commit message (Collapse) | Author |
|
- Clarify a comment.
- Change all the flags to chars from ints to make the structs smaller.
|
|
to userland.
Wrap the checking code in #if NVND > 0 as pointed out
by miod.
ok beck@
ok deraadt@, krw@ (on an earlier diff)
|
|
We've reached the point where we have a dozen allocators that all do more
or less the same thing, but slightly different, with slightly different
semantics, slightly different default behaviors and default behaviors that
most callers don't expect or want. A random sample on the last general
hackathon showed that no one could explain what all the different allocators
did. And every time someone needed to do something slightly different a
new allocator was written.
Unify everything. One single function to allocate multiples of PAGE_SIZE
kernel memory. Four arguments: size, how va is allocated, how pa is allocated
and misc parameters. Same parameters are passed to the free function so that
we don't need to guess what's going on.
Functions are currently unused, we'll do one thing at a time to avoid a
giant commit.
looked at by lots of people, deraadt@ and beck@ are yelling at me to commit.
|
|
to on, if POOL_DEBUG is compiled in, so that boot-time pool corruption
can be found. When the sysctl is turned off, performance is almost as
as good as compiling with POOL_DEBUG compiled out. Not all pool page
headers can be purged of the magic checks.
performance tests by henning
ok ariane kettenis mikeb
|
|
socketbuffer size of the closed side since on half close the high
watermark was set to 0.
OK blambert@
|
|
functions. OK blambert@
|
|
machines after warm boot or resume. Some of the checks being made were
nonsense. Also tested by claudio and guenther.
ok jsg
|
|
up. From FreeBSD.
ok jsg claudio
|
|
increase the timeout on io from 10s to 45s. ata says we should wait
30, but i am cynical. this gives loongson disks enough time to wake
up on resume.
|
|
from an IP35 system with half its memory outside the dma_constraint range.
|
|
dma_constraints range in _dmamap_load_buffer. From and ok beck@
|
|
span the whole physical address space, for the pmemrange magic to operate
correctly.
|
|
struct mutex. Modelled after hppa.
|
|
Allow reclaiming pages from all pools.
Allow zeroing all pages.
Allocate the more equal pig.
mlarking@ needs this.
Not called yet.
ok mlarkin@, theo@
|
|
always gaining anything, and msleep() implementation depends upon mtx_leave()
invoking splx().
|
|
|
|
|
|
Diff from Antti Harri.
|
|
memory used for i/o.
ok dlg@ deraadt@
|
|
a desync to be appended when the socket buffer becomes full, rather than
continuall retrying until space becomes available (which may be never).
ok claudio@
|
|
"be brave" k2k11
|
|
to xconsole. ok deraadt@ guenther@
|
|
kernel we'll hear about problems.
|
|
was done earlier for routing sockets.
ok claudio@
|
|
|
|
also cuts the aen drain over to using an iohandler so it can be made
reliable.
this compiles, but i havent got hardware to test with. its going in as a
way to force testing. if there's a problem with the code then let me know
or back it out.
"man up" k2k11
|
|
the backing store. The state of a VT is only coherent if both the active
flag and the backing store are in order, which is not the case during VT
switches.
This fixes display glitches occuring during VT switches if one of the
VT involved is doing a lot of tty updates.
Noticed by deraadt@ on a machine too fast for mere mortals.
|
|
ok claudio@
|
|
a vforked child behave correctly. Have the parent in a vfork()
wait on a (different) flag in *its* process instead of the child
to prevent a possible use-after-free. When ktracing the child
return from a fork, call it rfork if an rthread was created.
ok blambert@
|
|
Both found by miod@
|
|
Pointed out by Fred Crowson. ok ariane@
|
|
ok deraadt henning sthen thib (though thib says he can't spell)
|
|
anymore so the allocation in in6_update_ifa() can now wait.
ok deraadt henning
|
|
|
|
ok thib@
|
|
target of DMA.
ok deraadt@ dlg@
|
|
ok dlg@ ("miod will not object" dlg@)
|
|
ok henning@
|
|
|
|
This allows bce to run properly on systems with more then 1G of
physical memory. It also makes the driver a lot simpler since the
DMA rings are now mostly static.
bce is short for bcopy ethernet.
OK dlg@, just commit it deraadt@
|
|
|
|
With current strategies to put memory in the ``correct'' place it isn't
needed. There's also the problem that it did not work on all machines,
failing completely on some and utterly breaking DMA. So just remove it.
If anyone needs it it will be in the Attic.
ok deraadt@
|
|
ok jsg@
|
|
ok dlg@ "I'm interested" miod@
|
|
ok deraadt@
|
|
|
|
ok dlg
|
|
that you can't evade the checks by doing the dirty work in an rthread
ok blambert@, deraadt@
|
|
With this change bufcachepercent will be the percentage of dma reachable
memory that the buffer cache will attempt to use.
ok deraadt@ thib@ oga@
|
|
the top of the dma constraint range and panic if they are not.
ok deraadt@, thib@, oga@
|