vmstat name lookups

2004-02-17 Thread Arno
Hello, is this a correct patch to get rid of the following problem : [vmstat -is : ] ... 4096 bytes per page -1946329673 total name lookups cache hits (-108% pos + -3% neg) system 0% per-directory deletions 0%, falsehits 0%, toolong 0% patch is against -current and outpu

Re: signed char bug in regexp library

2004-02-17 Thread Tim Kientzle
Mikulas Patocka wrote: Hi I ripped regexp library from FreeBSD 4 and use it in another program. I get random crashes because the library casts char to int and uses it as array index ... the most obvious case is engine.i:189: register char *dp; dp += charjump[(int)*dp]; but there are many more and

Re: signed char bug in regexp library

2004-02-17 Thread Tim Kientzle
Mikulas Patocka wrote: Hi I ripped regexp library from FreeBSD 4 and use it in another program. I get random crashes because the library casts char to int and uses it as array index ... the most obvious case is engine.i:189: register char *dp; dp += charjump[(int)*dp]; but there are many more and

Re: signed char bug in regexp library

2004-02-17 Thread David Malone
On Mon, Feb 16, 2004 at 08:50:39PM +0100, Mikulas Patocka wrote: > When i compile library with -funsigned-char, it works fine. But it isn't > compiled with that flag in FreeBSD. The signedness of chars is left as a choice for the compiler - on the platform you are working on they must have decided

signed char bug in regexp library

2004-02-17 Thread Mikulas Patocka
Hi I ripped regexp library from FreeBSD 4 and use it in another program. I get random crashes because the library casts char to int and uses it as array index ... the most obvious case is engine.i:189: register char *dp; dp += charjump[(int)*dp]; but there are many more and I'm unable to spot them

pin a subsystem to a CPU

2004-02-17 Thread Bin Ren
Hi, I'm thinking about whether it's possible and how to pin a subsystem of kernel, from a particular driver (such as software RAID) to TCP network stack, to a particular CPU. In other words, I have dual processors and how can I make one of the CPU JUST runs TCP stack so as to increase network thro

Re: Branch prediction

2004-02-17 Thread David Schultz
On Sun, Feb 15, 2004, Trent Nelson wrote: > For as long as I've been programming, I've always been under the > impression that CPUs will always predict a branch as being false > the first time they come across it. > > Many, many years ago, I came across a DEC programming guide tha

Re: more info about KLD

2004-02-17 Thread takawata
In message <[EMAIL PROTECTED]>, John-Mark Gurney wrote: >> I have two questions: >> (1) Is there any more detailed information regarding KLD in >> addition to the KDL facility programming in DaemonNews >> and in Architecture Book? > >have you checked the kernel developers handbook.. > >> (2) Can I