Re: allocating 14KB memory per packet compression/decompression results in vm_fault

2005-11-03 Thread kamal kc
> > for my compression/decompression i use string > tables and temporary > > buffers which take about 14KB of memory per > packet. > > If you're allocating 14 KB of data just to send > (approximately) 1.4 KB > and then you throw away the 14 KB immediately, it > sounds terrible. yes that's true.

Re: Kernel source hacking

2005-11-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Václav Haisman <[EMAIL PROTECTED]> writes: : I have noticed that there are still places in kernel sources that use : K&R style of function parameter definitions. You must be looking at old sources. Most of the kernel has been converted, but it is still

Reproduceable freeze with quotas enabled

2005-11-03 Thread Attila Nagy
Hello, I have an "easily" (at least to me) reproduceable freeze with both 6-STABLE and 7-CURRENT on an amd64 SMP machine. What I do is simply copy a lot of directories, files and symlinks with different uids from another machine to this one, using rsync. With quotas enabled it freezes const

Kernel source hacking

2005-11-03 Thread Václav Haisman
Hi, I have noticed that there are still places in kernel sources that use K&R style of function parameter definitions. Are the core developers interested in changing it into proper ANSI definitions? I would do it because it would give me a reason to read the code and learn something about the kern

Re: locking in a device driver

2005-11-03 Thread Julian Elischer
M. Warner Losh wrote: In message: <[EMAIL PROTECTED]> Sergey Babkin <[EMAIL PROTECTED]> writes: : Maybe it can be fixed in the kernel without : too much trouble. It already is in libthr and libposix. They already use execution contexts to map M threads onto N contexts. libc_r is be

Re: locking in a device driver

2005-11-03 Thread Julian Elischer
Sergey Babkin wrote: From: "M. Warner Losh" <[EMAIL PROTECTED]> Scott Long <[EMAIL PROTECTED]> writes: : Dinesh Nair wrote: : > : > : > On 11/03/05 03:12 Warner Losh said the following: : > : >> Yes. if you tsleep with signals enabled, the periodic timer will go : >> off, and you'

Re: locking in a device driver

2005-11-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Sergey Babkin <[EMAIL PROTECTED]> writes: : Maybe it can be fixed in the kernel without : too much trouble. It already is in libthr and libposix. They already use execution contexts to map M threads onto N contexts. libc_r is being retired and not wort

Re: allocating 14KB memory per packet compression/decompression results in vm_fault

2005-11-03 Thread Giorgos Keramidas
On 2005-11-02 18:39, kamal kc <[EMAIL PROTECTED]> wrote: > dear everybody, > > i am trying to compress/decompress ip packets. > for this i have implemented the adaptive lzw compression. > i put the code in the ip_output.c and do my compression/decompression > just before the if_output() function ca

Re: nsswitch reviewer wanted

2005-11-03 Thread Michael Bushkov
Hello, Ceri! I'll do all the necessary changes and will send the updated patch to you and to the lists. I hadn't realised that. I'd be interested to see that patch if you still have a copy, as it would answer the question of how much work doing such a thing would be. So far as I'm concerned

Re: nsswitch reviewer wanted

2005-11-03 Thread Ceri Davies
Hi Michael, On Thu, Nov 03, 2005 at 04:11:15PM +0300, Michael Bushkov wrote: > Ceri Davies wrote: > > >I realise that you weren't asking for comments, but I took a quick look > >at http://www.rsu.ru/~bushman/nsswitch_cached/nss_cached.patch and have > >some. I'll send this to the original lists

Re: [FreeBSD-Announce] New Logo

2005-11-03 Thread Seán C . Farley
On Tue, 1 Nov 2005, Branson Matheson wrote: On Tue, Nov 01, 2005 at 04:50:43PM +0100,Ivan Voras did mutter: Man, I _so_ hope this is a joke... Agreed. The "logo" looks like some anime rendering of a sea mine, and the font really doesn't agree with it. Since there has been a plethora of nega

Re: Re: locking in a device driver

2005-11-03 Thread Sergey Babkin
>From: "M. Warner Losh" <[EMAIL PROTECTED]> >Scott Long <[EMAIL PROTECTED]> writes: >: Dinesh Nair wrote: >: > >: > >: > On 11/03/05 03:12 Warner Losh said the following: >: > >: >> Yes. if you tsleep with signals enabled, the periodic timer will go >: >> off, and you'll return earl

Re: locking in a device driver

2005-11-03 Thread Andrey Simonenko
On Thu, Nov 03, 2005 at 04:55:10AM +0800, Dinesh Nair wrote: > > On 11/03/05 04:27 M. Warner Losh said the following: > >that this is the case: sleep in an ioctl, and the entire process hangs > >until the ioctl returns. > > which is probably what's happening in my case. i've got 4 threads spun of

Re: nsswitch reviewer wanted

2005-11-03 Thread Michael Bushkov
Hello, Ceri! Ceri Davies wrote: I realise that you weren't asking for comments, but I took a quick look at http://www.rsu.ru/~bushman/nsswitch_cached/nss_cached.patch and have some. I'll send this to the original lists too. Thanks for comments! I need them much. o There aren't nearly eno

Re: nsswitch reviewer wanted

2005-11-03 Thread Ceri Davies
In the list that shall not be cc'd to, on Tue, Nov 01, 2005 at 04:15:07PM -0800, Brooks Davis wrote: > Michael Bushkov disk some interesting work for use under the Google > Summer of Code and I'd like to see the appropriate parts committed. > Unfortunately, this isn't an area I have great depths o