How to find a certain socket?

2006-09-20 Thread Taras Danko
Hi. I need to find and close a certain socket from kernel module. My current implementation iterates over the "allproc" list and checks every process' file descriptors list to find needed socket. But maybe there is an easier way to do this? Some nixes have "inpcbtable" which holds all the open

Re: numbers don't lie ...

2006-09-20 Thread Danny Braniss
> > --FCuugMFkClbJLl1L > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Tue, Sep 19, 2006 at 04:11:12PM +0400, Dmitry Morozovsky wrote: > > On Thu, 14 Sep 2006, Oliver Fromme wrote: > >=20 > > OF> Because buildworld is

Re: numbers don't lie ...

2006-09-20 Thread Dmitry Morozovsky
On Wed, 20 Sep 2006, Eric Anderson wrote: EA> > > > My experiments show that if you have enough memory to host radmdrive EA> > for > /usr/src you'd better leave it for caching - there were no EA> > statistically EA> > > meaningful performance difference, at least on machines with 1G+ RAM. EA>

Re: numbers don't lie ...

2006-09-20 Thread Eric Anderson
On 09/20/06 07:50, Oliver Fromme wrote: Dmitry Morozovsky wrote: > Oliver Fromme wrote: > > Because buildworld is I/O-bound on systems with sufficiently > > fast processors. > > > > Try putting the contents of /usr/src into a RAM disk and > > repeat the benchmark. The numbers might look

Re: numbers don't lie ...

2006-09-20 Thread Oliver Fromme
Dmitry Morozovsky wrote: > Oliver Fromme wrote: > > Because buildworld is I/O-bound on systems with sufficiently > > fast processors. > > > > Try putting the contents of /usr/src into a RAM disk and > > repeat the benchmark. The numbers might look a little > > different then. Of course, y

Re: numbers don't lie ...

2006-09-20 Thread soralx
> KK> > My experiments show that if you have enough memory to host radmdrive > for > KK> > /usr/src you'd better leave it for caching - there were no statistically > KK> > meaningful performance difference, at least on machines with 1G+ RAM. > KK> > KK> Really? My measurements show the opposit

Re: numbers don't lie ...

2006-09-20 Thread Dmitry Morozovsky
On Tue, 19 Sep 2006, Kris Kennaway wrote: KK> > OF> Because buildworld is I/O-bound on systems with sufficiently KK> > OF> fast processors. KK> > OF> KK> > OF> Try putting the contents of /usr/src into a RAM disk and KK> > OF> repeat the benchmark. The numbers might look a little KK> > OF> diffe