Improving the kernel/i386 timecounter performance (GSoC
proposal)
Sergey Babkin
babkin at verizon.net
Fri Mar 27 14:14:18 PDT 2009
Would not a normal mmap be duplicated on fork? I'd do it as a small
pseudo- that allows to mmap this page. Then libc would open this pseudo-d evice and mmap it,
either in the on-load handler or on the first call of gettimeofday(). I think, that should
be it, no special magic nece The per-process is more difficult and would require the magic maybe
no magic a s such: just mmap the file from the /proc files Then on fork
in the child unmap this page, open the new file, and will still be tricky :-)
It also means wasting an extra p -SB
Mar 27, 2009 12:51:56 PM, [1]scottl at samsc
I've been talking about this for years. All I need is help with the VM
magic to create the page on fork. I also want two pages, one gl obal
for gettimeofday (and any other global data we can think of) and
on per-process for static data like getpid/getgid.
Scott
Sergey Babkin wrote:
> (Sorry for the top quoting). Probably the > gettimeofd=y() is to have
> a pr=cesses. Put
&g > into this page. Then getting the (OK, two
> reads, to make sure that< between).
References
1. file://localhost/tmp/3D"mai
More information about the freebsd-hackers
mailing list