Re: Poor TCP Performance 2.4.0-10 <-> Win98 SE PPP

2000-11-07 Thread Jordan Mendelson
Andi Kleen wrote: > > On Mon, Nov 06, 2000 at 11:16:21PM -0800, Jordan Mendelson wrote: > > > It is clear though, that something is messing with or corrupting the > > > packets. One thing you might try is turning off TCP header > > > compression for the PPP link, does this make a difference? > >

Re: [PATCH] Re: Negative scalability by removal of

2000-11-07 Thread dean gaudet
haha, ok! :) (well i'm sure you know the history, but for others -- that code entered apache not specifically for linux... but specifically for handling the many early-to-mid 90s unixes that just plain broke on multiple accept :) -dean On Mon, 6 Nov 2000, David S. Miller wrote: >Date:

Re: Poor TCP Performance 2.4.0-10 <-> Win98 SE PPP

2000-11-07 Thread Rogier Wolff
David S. Miller wrote: > Linux resends 21:557, Windows95 (finally) acknowledges it. > > Looking at the equivalent 220 traces, the only difference appears to > be that the packets are not getting dropped. This smells of "wrong checksums getting generated", in my opinion. (This is not my field o

Re: Poor TCP Performance 2.4.0-10 <-> Win98 SE PPP

2000-11-07 Thread Rogier Wolff
David S. Miller wrote: > It is clear though, that something is messing with or corrupting the > packets. One thing you might try is turning off TCP header > compression for the PPP link, does this make a difference? Try specifying "asyncmap 0x" too. Roge

Re: Poor TCP Performance 2.4.0-10 <-> Win98 SE PPP

2000-11-07 Thread Andi Kleen
On Mon, Nov 06, 2000 at 11:27:54PM -0800, David S. Miller wrote: > What 2.4.x is doing is completely legal. Really, even if not all of > these people are from Earthlink (well, you should see if this is for > certain) they may all be using the same buggy terminal server at these > different ISPs.

Re: Poor TCP Performance 2.4.0-10 <-> Win98 SE PPP

2000-11-07 Thread Andi Kleen
On Mon, Nov 06, 2000 at 11:16:21PM -0800, Jordan Mendelson wrote: > > It is clear though, that something is messing with or corrupting the > > packets. One thing you might try is turning off TCP header > > compression for the PPP link, does this make a difference? > > Actually, there has been se

locks.c: removal of semaphores

2000-11-07 Thread Trond Myklebust
Here's a slightly modified version of Andrew's patch: the version he sent me on Sunday contained an incomplete merge of my fix to locks_remove_posix(), meaning that the host server was not being notified that posix locks were cleared in the call to close(). The following patch contains his patch

Re: malloc(1/0) ??

2000-11-07 Thread Lyle Coder
When a program does a malloc... the glibc gets atleast on page (brk) [actually, glibs determins of it needs to brk more memory from the kernel... because it maintains it;s own pool].. so if you malloc 4 byts, you can copy to that pointer more than 4 bytes (upto a page size, ex 4K)... hope that ans

Re: processes> 2^15

2000-11-07 Thread Matti Aarnio
On Tue, Nov 07, 2000 at 08:59:11AM +0100, Arnaud S . Launay wrote: > In the fact, the first limit to be reached will be NR_TASKS defined in > linux/tasks.h: > #define NR_TASKS512 /* On x86 Max 4092, or 4090 w/APM configured. */ > > So I wonder if we could really have more than 4092 pr

RE: malloc(1/0) ??

2000-11-07 Thread Andrej Hosna
Hello , > > why does this program works. when executed, it doesnt > > give a segmentation fault. when the program requests > > memory, is a standard chunk is allocated irrespective > > of the what the user specifies. please explain. > > > > main() > > { > >char *s; > >s = (char*)malloc(0);

2.2.17: do_try_to_free_pages fails, no OOM

2000-11-07 Thread Matthew Sanderson
I'm running 2.2.17 vanilla on a UP x86 box, and getting occasionally a couple of 'VM: do_try_to_free_pages failed' messages. The system appears to be running perfectly. It's almost out of real RAM, but has about 100M swap unused. I can't figure out how this happens. Specifically, how come the cal

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread James A . Sutherland
On Tue, 07 Nov 2000, Gerhard Mack wrote: > > Then none of this is relevant to you, since you can't unload any modules! And > > now you're the one doing the trolling... WTF do you think module code is > > supposed to do when you don't use modules?! > > > > Simple ... I'd rather the hardware was s

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread James A . Sutherland
On Mon, 06 Nov 2000, Horst von Brand wrote: > "James A. Sutherland" <[EMAIL PROTECTED]> said: > > On Mon, 06 Nov 2000, Horst von Brand wrote: > > [...] > > > > The problem (AFAIU) is that if the levels aren't set on startup, they are > > > random in some cases. > > > So set them on startup. NOT

Re: malloc(1/0) ??

2000-11-07 Thread Matti Aarnio
On Tue, Nov 07, 2000 at 12:09:09AM -0800, Lyle Coder wrote: > When a program does a malloc... the glibc gets atleast on page (brk) > [actually, glibs determins of it needs to brk more memory from the kernel... > because it maintains it;s own pool].. so if you malloc 4 byts, you can copy > to that

RE: malloc(1/0) ??

2000-11-07 Thread David Schwartz
> > The program can't possibly work because it invokes undefined > behavior. It > > is impossible to determine what a program that invokes > undefined behavior is > > 'supposed to do'. > > I dont think it's undefined behaviour ... You are correct. This is bahavior that is undefined by th

RE: malloc (1/0) ??

2000-11-07 Thread David Feuer
As long as you don't try to do any more mm once you've allocated with malloc(0), and as long as you haven't done any previous allocations with malloc, you should be able to scribble all over malloc. In fact, if you want, I think you can scribble all over your own stack without causing Linux a

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread richardj_moore
We have a generic way of doing this which we are about to release - called GKHI (Generalised Kernel Hooks Interface) would you like a copy to test? Richard Moore - RAS Project Lead - Linux Technology Centre (PISC). http://oss.software.ibm.com/developerworks/opensource/linux Office: (+44) (0)

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Helge Hafting
Alan Cox wrote: > > > It would probably be better (in this case) to increment the module count > > when the mixer settings go above 0, and decrement it when the settings > > go totally to 0. This prevents an unwanted unload. > > Thats about 200 lines of code and also about 50,000 emails complai

Re: Broken colors on console with 2.4.0-textXX

2000-11-07 Thread Richard Guenther
On Mon, 6 Nov 2000, James Simmons wrote: > > Unfortunately I cannot confirm this. Checked 2.4.0-test10 and the problem > > is still there. I digged further and it seems to be a race condition(?) > > triggered by swapped out stuff - because just starting X and switching > > back to the console wor

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Martin Mares
Hello Horst! > Strange somebody from a distribution forgets _the_ most important use of > modules: Remember old-time Slackware, with dozens of different boot > diskettes, and the imperative to compile a kernel to your machine once you > got it running? But how is this related to automatic unload

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Martin Dalecki
Martin Mares wrote: > > Hi Alan! > > > If the sound card is only used some of the time or setup and then used > > for TV its nice to get the 60K + 128K DMA buffer back when you dont need it > > especially on a low end box > > So why don't we allocate / free the DMA buffer on device open / close

ne2k/wd3018 driver

2000-11-07 Thread Ruth Ivimey-Cook
Hi folks, Does anyone know why a Linux ethernet driver might appear to be up & working (that is, no errors, ifconfig says UP, etc), and the board has a link light on it, but the hub link light is not on and no packets are transmitted or received? rmmod/insmod of the driver doesn't help. I hav

Re: Kernel hook for open

2000-11-07 Thread Catalin BOIE
On Mon, 6 Nov 2000, Erik Mouw wrote: > On Mon, Nov 06, 2000 at 10:11:11AM -0500, Michael Vines wrote: > > On Mon, 6 Nov 2000, Erik Mouw wrote: > > > Use LD_PRELOAD instead. > > > > You could also write a simple kernel module that replaces the open system > > call. See the Linux Kernel Module Pr

Re: Kernel hook for open

2000-11-07 Thread Catalin BOIE
On Mon, 6 Nov 2000, Michael Vines wrote: > On Mon, 6 Nov 2000, Erik Mouw wrote: > > > On Mon, Nov 06, 2000 at 10:11:11AM -0500, Michael Vines wrote: > > > On Mon, 6 Nov 2000, Erik Mouw wrote: > > > > Use LD_PRELOAD instead. > > > > > > You could also write a simple kernel module that replaces t

Re: Kernel hook for open

2000-11-07 Thread Tigran Aivazian
On Mon, 6 Nov 2000, Erik Mouw wrote: > On Mon, Nov 06, 2000 at 10:11:11AM -0500, Michael Vines wrote: > > On Mon, 6 Nov 2000, Erik Mouw wrote: > > > Use LD_PRELOAD instead. > > > > You could also write a simple kernel module that replaces the open system > > call. See the Linux Kernel Module Pr

Re: Kernel hook for open

2000-11-07 Thread Tigran Aivazian
On Tue, 7 Nov 2000, Tigran Aivazian wrote: > To test Y2k readiness of programs one simply can use my timetravel kernel > module. No, doing things in userspace is far more complex and less > reliable and also simply not good enough (because doesn't cover the case yes, yes, I am aware of

Re: 2.2.17: do_try_to_free_pages fails, no OOM

2000-11-07 Thread Magnus Naeslund\(b\)
From: "Matthew Sanderson" <[EMAIL PROTECTED]> > I'm running 2.2.17 vanilla on a UP x86 box, and getting occasionally a > couple of 'VM: do_try_to_free_pages failed' messages. > The system appears to be running perfectly. It's almost out of real RAM, > but has about 100M swap unused. > > I can't fi

Re: Linux-2.4.0-test10

2000-11-07 Thread Ragnar Hojland Espinosa
On Fri, Nov 03, 2000 at 01:25:10AM -0500, [EMAIL PROTECTED] wrote: > > Just happened with test10, same circumstances .. font map got corrupted, and > > noise on the screen. Switching back and forth from X to a vc fixed it, tho. > > > > Sort of amusing that it (apparently) only happens with ppp

Slow screen redraw in 2.4.x

2000-11-07 Thread Joel Beach
I've noticed noticeably slower screen refresh in 2.4.x than under the 2.2 kernel series. It's most noticeable when running xscreensaver with fast scrolling patterns, or when doing opague moves of large windows. I'm using Xfree 4.01 and the XFree driver for the Nvidia card (not the Nvidia binary pa

removable EIDE disks

2000-11-07 Thread Joe Woodward
I am trying to use removable EIDE hard disks on a Red Hat Linux 6.1 machine, for backup / walknet purposes.   Issuing a BLKRRPART ioctl call immediately after changing the disk works, but only if the new disk is no larger than the disk present at boot time (smaller and equal capacity disks wo

Re: Pentium 4 and 2.4/2.5

2000-11-07 Thread Alan Cox
> I noticed that Pentium 4 isn't an config option in 2.4.0-test10. Is > someone working on a patch for the the kernel (if needed) to support the > Pentium 4 after 2.4.0 is released? And also for 2.2. 2.2.18pre18/19 should ident the CPU fine. A contributed patch should also report the caches cor

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Alan Cox
> When I plug it in and modprobe is triggered to load the driver, a script then > runs to feed the device appropriate configuration info. Since the driver only > resets the hardware when it is given the correct configuration, there's no > problem. Thats another 100 lines of race prone network ker

Re: ide-probe.c:400: `rtc_lock' undeclared and /lib/modules/..../build

2000-11-07 Thread Alan Cox
> Agreed, I was unhappy that the build symlink was added to 2.2 kernels. > Now you need modutils >= 2.3.14 for 2.2 kernels :(. But nobody asks > me, I'm just the kernel module.[ch] and modutils maintainer. Actually they do. I agree that it wants sorting. Im just wondering what the best approach

Re: Pentium 4 and 2.4/2.5

2000-11-07 Thread Alan Cox
> Not to worry, some of us are working with the 'I' guys to do proper P4 > detection. Be careful with the intel patches. The ones I've seen so far tried to call the cpu 'if86' breaking several tools that do cpu model checking off uname. They didnt fix the 2GHz CPU limit, they use 'rep nop' in the

Re: 2.2.17: do_try_to_free_pages fails, no OOM

2000-11-07 Thread octave klaba
> Oct 24 00:07:39 gimme kernel: VM: do_try_to_free_pages failed for > postmaster... 2.2.18pre19 should fix this problem if andrea's patch is inside. if not, you have to patch pre18 with VM-global-2.2.18pre18-7.bz2 if you are from europe you can downlaod it from: ftp://ftp.ovh.net/pub/linux/kernel

Re: rdtsc to mili secs?

2000-11-07 Thread Alan Cox
> This issue, and all related issues, need to be taken care of for all > speed > changing CPUs from Intel, AMD and Transmeta. Is the answer of "howto Sensibly configured power saving/speed throttle systems do not change the frequency at all. The duty cycle is changed and this controls the cpu pe

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread James A . Sutherland
On Tue, 07 Nov 2000, Alan Cox wrote: > > When I plug it in and modprobe is triggered to load the driver, a script then > > runs to feed the device appropriate configuration info. Since the driver only > > resets the hardware when it is given the correct configuration, there's no > > problem. > >

Re: ne2k/wd3018 driver

2000-11-07 Thread Alan Cox
> Does anyone know why a Linux ethernet driver might appear to be up & > working (that is, no errors, ifconfig says UP, etc), and the board has a > link light on it, but the hub link light is not on and no packets are > transmitted or received? rmmod/insmod of the driver doesn't help. > > I ha

Re: removable EIDE disks

2000-11-07 Thread Alan Cox
> works, but only if the new disk is no larger than the disk present at = > boot time (smaller and equal capacity disks work OK). > > How do I get Linux to recognise that the media in /dev/hdc has changed? I imagine your disks are not reporting themselves as 'removable' ? If they correctly repor

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Alan Cox
> Plese add power-saving devices like in notebooks to the list as well. > For example in my notebook the PC speaker loops through the maestro-3e. > The BIOS is initializing the maestro with some sane mixer values but > after > a suspend cycle the pc speaker is compleatly off due to suspension of >

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Alan Cox
> In the NIC example, I might well want the DHCP client to run whenever I > activate the card. Bringing the NIC up with the old configuration - which, with > dynamic IP addresses, could now include someone else's IP address! - is worse > than useless. You'll notice the pcmcia subsystem already ha

Re: removable EIDE disks

2000-11-07 Thread Andries Brouwer
On Tue, Nov 07, 2000 at 11:12:00AM -, Joe Woodward wrote: > I am trying to use removable EIDE hard disks > > Issuing a BLKRRPART ioctl call immediately after changing the disk works It should not be necessary to use BLKRRPART. Does the disk advertise itself as removable? % dmesg | grep rem

[2.4.0-test10] zImage, pcmcia, and ufs(44bsd)

2000-11-07 Thread imel96
hi all, just a few reports: 1. zImage in test10 somehow isn't working properly. i have a zImage sized a bit more than 500kb on my harddrive which hangs at the loading process (the one showing dots). i write the image to a floppy, and it boots ju

Re: Persistent module storage - modutils design

2000-11-07 Thread Horst von Brand
Keith Owens <[EMAIL PROTECTED]> said: [...] > I have not decided where to save the persistent module parameters. It > could be under /lib/modules//persist or it could be under > /var/log or /var/run. I am tending towards /var/run/module_persist, in > any case it will be a modules.conf paramete

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread James A . Sutherland
On Tue, 07 Nov 2000, Alan Cox wrote: > > In the NIC example, I might well want the DHCP client to run whenever I > > activate the card. Bringing the NIC up with the old configuration - which, with > > dynamic IP addresses, could now include someone else's IP address! - is worse > > than useless. >

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Petko Manolov
Alan Cox wrote: > > > In the NIC example, I might well want the DHCP client to run whenever I > > activate the card. Bringing the NIC up with the old configuration - which, with > > dynamic IP addresses, could now include someone else's IP address! - is worse > > than useless. > > You'll notice

Re: Persistent module storage [was Linux 2.4 Status / TODO page]

2000-11-07 Thread Alan Cox
> > eth0pegasus > > nopersist eth0 > > post-install eth0 /usr/local/sbin/my-dhcp-stuff > > So, in short, this is already done perfectly well in userspace without some > sort of Registry-style kernelside hack? Thats the idea. Once the rmmod code can read back values the cycle is complete

Re: [PATCH] Re: Negative scalability by removal of

2000-11-07 Thread Andrew Morton
Linus Torvalds wrote: > > On Tue, 7 Nov 2000, Andrew Morton wrote: > > > Alan Cox wrote: > > > > > > > Even 2.2.x can be fixed to do the wake-one for accept(), if required. > > > > > > Do we really want to retrofit wake_one to 2.2. I know Im not terribly keen to > > > try and backport all the me

Re: removable EIDE disks

2000-11-07 Thread Justin Schoeman
> Joe Woodward wrote: > > I am trying to use removable EIDE hard disks on a Red Hat Linux 6.1 > machine, for backup / walknet purposes. > > Issuing a BLKRRPART ioctl call immediately after changing the disk > works, but only if the new disk is no larger than the disk present at > boot time (smal

Re: ide-probe.c:400: `rtc_lock' undeclared and /lib/modules/..../build

2000-11-07 Thread Keith Owens
On Tue, 7 Nov 2000 12:11:57 + (GMT), Alan Cox <[EMAIL PROTECTED]> wrote: >> Agreed, I was unhappy that the build symlink was added to 2.2 kernels. >> Now you need modutils >= 2.3.14 for 2.2 kernels :(. But nobody asks >> me, I'm just the kernel module.[ch] and modutils maintainer. > >Actuall

Re: linux 2.4.0-test9

2000-11-07 Thread Richard B. Johnson
On Tue, 7 Nov 2000, Keith Owens wrote: > On Mon, 6 Nov 2000 16:31:23 -0500 (EST), > "Richard B. Johnson" <[EMAIL PROTECTED]> wrote: > >However when running, the new kernel 2.4.0-test9, can't be used to > >make a usable initrd ram disk. The result being that 2.4.0-test9 > >can't, itself, build an

Re: Persistent module storage - modutils design

2000-11-07 Thread Horst von Brand
Horst von Brand <[EMAIL PROTECTED]> said: [Yes, I know this is bad taste...] > Keith Owens <[EMAIL PROTECTED]> said: > > [...] > > > I have not decided where to save the persistent module parameters. It > > could be under /lib/modules//persist or it could be under > > /var/log or /var/run. I

Re: Persistent module storage - modutils design

2000-11-07 Thread Keith Owens
On Tue, 07 Nov 2000 09:45:42 -0300, Horst von Brand <[EMAIL PROTECTED]> wrote: >Keith Owens <[EMAIL PROTECTED]> said: >> I have not decided where to save the persistent module parameters. It >> could be under /lib/modules//persist or it could be under >> /var/log or /var/run. I am tending towar

Re: Persistent module storage - modutils design

2000-11-07 Thread Keith Owens
On Tue, 07 Nov 2000 10:30:39 -0300, Horst von Brand <[EMAIL PROTECTED]> wrote: >> Keith Owens <[EMAIL PROTECTED]> said: >> > I have not decided where to save the persistent module parameters. It >> > could be under /lib/modules//persist or it could be under >> > /var/log or /var/run. I am tendi

Re: [PATCH] Re: Negative scalability by removal of

2000-11-07 Thread Alan Cox
> Anyway, version 2 below uses LIFO for the accept() wakeups. This > appears to be a 5%-10% win for Apache. The browsing loop for > exclusive tasks will now pull in cachelines 0 and 2, rather > than the previous 0 and 1. That makes it much worse for the newest cpus which use 64byte lines (Athlo

Re: Persistent module storage - modutils design

2000-11-07 Thread Alan Cox
> Note! This _has_ to be in the / filesystem so it works before mounting the > rest of the stuff (if ever). This would rule out /var, and leave just > /lib/modules/. Makes me quite unhappy... The /lib filesystem is likely not writable so /var is the right default. Any reason it cant be overridde

Re: linux 2.4.0-test9

2000-11-07 Thread Richard B. Johnson
On Tue, 7 Nov 2000, Richard B. Johnson wrote: > On Tue, 7 Nov 2000, Keith Owens wrote: > > > On Mon, 6 Nov 2000 16:31:23 -0500 (EST), > > "Richard B. Johnson" <[EMAIL PROTECTED]> wrote: > > >However when running, the new kernel 2.4.0-test9, can't be used to > > >make a usable initrd ram disk. T

Re: PCI oddness with Ali 1541 chipset

2000-11-07 Thread Rene Blokland
On Tue, 7 Nov 2000 01:22:06 +0100, Erik Mouw <[EMAIL PROTECTED]> wrote: > >Hi, > >I'm running 2.4.0-test10 on my desktop machine. The system works >perfectly well, but I get some strange PCI messages at boot time. Here >is part it: I've the same motherboard part of my syslog: orac kernel: ALI15X

Re: Calling module symbols from inside the kernel !

2000-11-07 Thread David Woodhouse
[EMAIL PROTECTED] said: > You will need to use a function pointer hook that the module fills in > when it is loaded. For an example look at devpts_upcall_new and > devpts_upcall_kill in fs/devpts/inode.c. The hooks are resident in > the kernel and are exported so the module can see them. The

Re: Persistent module storage - modutils design

2000-11-07 Thread Horst von Brand
Keith Owens <[EMAIL PROTECTED]> said: [...] > It makes no sense to allow duplicate module names in the same kernel > tree. "modprobe foo" - which one gets loaded? Why the tree then? -- Dr. Horst H. von Brand mailto:[EMAIL PROTECTED] Departamento de Informatica

Re: Persistent module storage - modutils design

2000-11-07 Thread Keith Owens
On Tue, 07 Nov 2000 11:47:57 -0300, Horst von Brand <[EMAIL PROTECTED]> wrote: >Keith Owens <[EMAIL PROTECTED]> said: >> It makes no sense to allow duplicate module names in the same kernel >> tree. "modprobe foo" - which one gets loaded? > >Why the tree then? Mainly so you can "modprobe -t net

A question about memory fragmentation

2000-11-07 Thread Abel Muñoz Alcaraz
Hi everybody, I have a question for you; How Linux avoids the memory fragmentation in linked lists? Windows 9x/NT/2000 (sorry, ;-)), have specific functions (like List_Create, ExInitializeSListHead, ...) to create generic linked lists but I don't find something similar in Linux.

Re: A question about memory fragmentation

2000-11-07 Thread Alan Cox
> Has Linux a generic linked list management API ? Yes - if you want to use it > Is the kernel memory fragmentation a solved problem in Linux? (I wish = Its not a problem you can solve without causing serious performance hits so we don't solve it. If you want to allocate la

Re: A question about memory fragmentation

2000-11-07 Thread Erik Mouw
On Tue, Nov 07, 2000 at 04:20:20PM +0100, Abel Muñoz Alcaraz wrote: > I have a question for you; How Linux avoids the memory fragmentation in > linked lists? > > Windows 9x/NT/2000 (sorry, ;-)), have specific functions (like List_Create, > ExInitializeSListHead, ...) to create generic

Re: A question about memory fragmentation

2000-11-07 Thread Davide Libenzi
On Tue, 07 Nov 2000, Erik Mouw wrote: > > > Is the kernel memory fragmentation a solved problem in Linux? (I wish it). > > My guess is that the slab allocator solves this, but I don't know that > much about the MM. Linux lists implementation stores linking informations directly inside the b

Re: Can EINTR be handled the way BSD handles it? -- a plea from a user-land programmer...

2000-11-07 Thread Theodore Y. Ts'o
From: Ulrich Drepper <[EMAIL PROTECTED]> Date: 06 Nov 2000 10:50:37 -0800 > Arguably though the bug is in glibc, in that if it's using signals > behinds the scenes, it should have passed SA_RESTART to sigaction. Why are you talking such a nonsense? The claim was made that pthrea

Re: Persistent module storage - modutils design

2000-11-07 Thread Jesse Pollard
Keith Owens <[EMAIL PROTECTED]>: > Enough people have asked for persistent module storage to at least > justify me writing the code. The design is simple. > > MODULE_PARM(var,type) currently defines type as [min[-max]]{b,h,i,l,s}. > For persistent data support, type is now [min[-max]]{b,h,i,l,s}

RE: malloc(1/0) ??

2000-11-07 Thread Jesse Pollard
> > > hi, > > why does this program works. when executed, it doesnt > > give a segmentation fault. when the program requests > > memory, is a standard chunk is allocated irrespective > > of the what the user specifies. please explain. > > > > main() > > { > >char *s; > >s = (char*)malloc

Re: pppd and 2.4.0pre10

2000-11-07 Thread Bill West
On Mon, Nov 06, 2000 at 09:56:49AM +1100, Eyal Lebedinsky wrote: > Alex Buell wrote: > > > > tahallah[alex]:/home/alex > ppp-on > > > > tahallah[alex]:/home/alex > /usr/sbin/pppd: This system lacks kernel > > support for PPP. This could be because the PPP kernel module could not be > > loaded,

A question about memory fragmentation

2000-11-07 Thread Abel Muñoz Alcaraz
Hi everybody, Thank you for your help! I am going to tell you more information. my question is about memory fragmentation when I allocate and free a lot of small memory pieces in a kernel module. Can it do a memory fragmentation problem? Can I solve it usi

[PATCH] protect processes from OOM killer

2000-11-07 Thread Chris Swiedler
Here's a small patch to allow a user to protect certain PIDs from death- by-OOM-killer. It uses the proc entry '/proc/sys/vm/oom_protect'; echo the PIDs to be protected: echo 1 516 > /proc/sys/vm/oom_protect The idea is that sysadmins can mark some daemon processes as off-limits for the OOM kill

Re: non-gcc linux? (was Re: Where did kgcc go in 2.4.0-test10?)

2000-11-07 Thread Jes Sorensen
> "Tim" == Tim Riker <[EMAIL PROTECTED]> writes: Tim> Alan Cox wrote: >> > 1. There are architectures where some other compiler may do >> better > optimizations than gcc. I will cite some examples here, no >> need to argue >> >> I think we only care about this when they become free software

RE: malloc(1/0) ??

2000-11-07 Thread lost
> > > main() > > > { > > >char *s; > > >s = (char*)malloc(0); > > >strcpy(s,"f"); > > >printf("%s\n",s); > > > } I rather suspect that the strcpy() scribbled over malloc()s record keeping data. However, that memory was in the processes allowed address space so it didn't SIGSEG

Re: A question about memory fragmentation

2000-11-07 Thread Francis Galiegue
On Tue, 7 Nov 2000, Abel Muñoz Alcaraz wrote: > > my question is about memory fragmentation when I allocate and free a lot of > small memory pieces in a kernel module. > Can it do a memory fragmentation problem? > Can I solve it using 'linux/list.h' API? Fragmentation is not r

Re: A question about memory fragmentation

2000-11-07 Thread Alan Cox
> I think that is better to allocate a big piece of memory and get the n= > odes > from this buffer with my own memory management functions; Is this corre= > ct?. See the SLAB interface. It'll do that for you. Kmalloc uses SLAB so will do similarly sane things - To unsubscribe from this li

Patch to DECODER_SET_NORM invocations

2000-11-07 Thread Pete Zaitcev
Hi, In the recent 2.2.x I discovered that saa7xxx driver expects norm to be an int, while struct video_channel defines it as __u16. This bombs if video_channel has something dirty next to it on the stack. Only one file is touched by the patch: drivers/char/buz.c, but some more code is related. T

Re: Broken colors on console with 2.4.0-textXX

2000-11-07 Thread James Simmons
> Umm, so why does this not happen with 2.2.X at all? Also the system is > not really stressed, but I simply do startx, inside an xterm go to > some random source, make -j, wait till the compile is complete and then > switch back to the console - its just that it seems that swapped out > X server

Linux v2.2.17: IDE disk error on Compact Flash device

2000-11-07 Thread Steven_Snyder
Hello. When attempting to boot Linux kernel v2.2.17 from a Compact Flash (CF) device I am getting the errors shown below. This CF device is in a PCMCIA form factor and is the Master device on the secondary IDE controller Before we get to the errors, though, a little background. I can reprodu

Re: Broken colors on console with 2.4.0-textXX

2000-11-07 Thread Alan Cox
> Actually I just thought about it. Do you DRI running. When you have DRI > enabled you shouldn't VT switch. It is a design flaw in DRI and the > console system :-(. Disable DRI you you will be fine. The theory behind DRI covers this fine. If its breaking fix the bugs in the Xserver and DRI code.

Re: USB init order dependencies.

2000-11-07 Thread Russell King
Dunlap, Randy writes: > I'm not following your argument very well. I've read it > and reread it several times. > Does adding a call to usb_init() in init/main.c cause > USB to be init 2 times? No. As I said elsewhere in this thread, the USB OHCI chip is not accessible until other board-specific

sendmail has low memory problems on 2.4.0 - Working Sets Required?

2000-11-07 Thread Jeff V. Merkey
Linus/Rik, I might be missing something, but with final load testing of NWFS on 2.4, I occasionally see sendmail fail to accept connections on a live internet server when low memory conditions are present. I reviewed the buffer cache, and it does appear that periodically buffer cache pages get

Re: USB init order dependencies.

2000-11-07 Thread David Woodhouse
[EMAIL PROTECTED] said: > No. As I said elsewhere in this thread, the USB OHCI chip is not > accessible until other board-specific initialisation has happened. > This is done via an initcall. Unfortunately, moving usb_init() back > into init/main.c will mean that USB is again initialised befor

Re: Linux-2.4.0-test10

2000-11-07 Thread Zephaniah E. Hull
On Tue, Nov 07, 2000 at 11:22:37AM +0100, Ragnar Hojland Espinosa wrote: > > You have a voodoo3 or voodoo5 with X4, and the DRI X4 module loaded. > > > > Or am I wrong? > > v3.. bingo :) Comment out the 'Load "dri"' line from /etc/X11/XF86Config-4, I'm working on debugging the problems. Zepha

RE: USB init order dependencies.

2000-11-07 Thread Dunlap, Randy
> From: Russell King [mailto:[EMAIL PROTECTED]] > > Dunlap, Randy writes: > > I'm not following your argument very well. I've read it > > and reread it several times. > > Does adding a call to usb_init() in init/main.c cause > > USB to be init 2 times? > > No. As I said elsewhere in this threa

Re: mount -tcoda /dev/cfs0 /mnt no longer works in -test9 and newer?

2000-11-07 Thread Jan Harkes
On Mon, Nov 06, 2000 at 10:35:39AM +0100, Pavel Machek wrote: > Hi! > > It complains > > coda_read_super: Bad mount data > coda_read_super: device index: 0 > > and will not mount. What do I need to mount coda? > Pavel Miklos Szeredi

Re: USB init order dependencies.

2000-11-07 Thread David Woodhouse
[EMAIL PROTECTED] said: > Yes, your proposal is to init only "usbcore" from init/main.c. I > still don't see a need to do this in test10. It's fixed now AFAIK. Not my proposal. The proposal to which Russell was objecting. My proposal was to just make the thing work without having to care abou

RE: USB init order dependencies.

2000-11-07 Thread Dunlap, Randy
> [EMAIL PROTECTED] said: > > Yes, your proposal is to init only "usbcore" from init/main.c. I > > still don't see a need to do this in test10. It's fixed now AFAIK. > > Not my proposal. The proposal to which Russell was objecting. > > My proposal was to just make the thing work without having

Re: Linux 2.4 Status / TODO page (Updated as of 2.4.0-test10)

2000-11-07 Thread tytso
Date: Fri, 3 Nov 2000 15:53:34 + (GMT) From: Alan Cox <[EMAIL PROTECTED]> > * AIC7xxx doesnt work non PCI ? (Doug says OK, new version due >anyway) This is now in Justin Gibbs hand but will take time to move on. Doug confirmed his current code is now merged too

Re: Linux 2.4 Status / TODO page (Updated as of 2.4.0-test10)

2000-11-07 Thread tytso
Date: Fri, 03 Nov 2000 16:10:50 -0500 From: Jeff Garzik <[EMAIL PROTECTED]> Part of that might be that serial doesn't support hotplug without patching. Did the patch which I sent out a few weeks ago actually work? I haven't had time to get back to it, but I now have a cardbus card,

Re: Linux 2.4 Status / TODO page (Updated as of 2.4.0-test10)

2000-11-07 Thread Jeff Garzik
[EMAIL PROTECTED] wrote: >> * Issue with notifiers that try to deregister themselves? (lnz; >>notifier locking change by Garzik should backed out, according to >>Jeff) > >and according to Alan > > But it hasn't been backed out yet, correct? It has been backe

Re: Linux 2.4 Status / TODO page (Updated as of 2.4.0-test10)

2000-11-07 Thread Jeff Garzik
[EMAIL PROTECTED] wrote: > >Date: Fri, 03 Nov 2000 16:10:50 -0500 >From: Jeff Garzik <[EMAIL PROTECTED]> > >Part of that might be that serial doesn't support hotplug without >patching. > > Did the patch which I sent out a few weeks ago actually work? I haven't > had time to get

Re: Linux 2.4 Status / TODO page (Updated as of 2.4.0-test10)

2000-11-07 Thread tytso
Date: Fri, 03 Nov 2000 17:20:53 -0500 From: Jeff Garzik <[EMAIL PROTECTED]> > 4. Boot Time Failures > > * Crashes on boot on some Compaqs ? (may be fixed) compaq laptops? desktops? or alphas? Absolutely no idea. This was one I inherited from Alan's list. If Alan or s

Re: gigabit ethernet small-packet performance

2000-11-07 Thread Jes Sorensen
> "Robert" == Robert Morris <[EMAIL PROTECTED]> writes: Robert> The short version is that the Intel Pro/1000 seems to be a lot Robert> faster than the Alteon Tigon-II or the SysKonnect card for Robert> small (60-byte) packets. The Intel card can send or receive at Robert> least 500,000 60-byt

Re: Fun with namespaces

2000-11-07 Thread Jes Sorensen
> "Rick" == Rick Hohensee <[EMAIL PROTECTED]> writes: Rick> cLIeNUX Core 1.4 visible dirs in / are all now symlinks. The Rick> only standard name is /dev. This means if you unpack cLIeNUX Rick> core on a clean ext2 partition, then install, say, SuSE over it, Rick> you can boot either one. On

linux-2.4.0test10

2000-11-07 Thread J.D. Hollis
hey. I'm having some strange memory problems with the 2.4 kernel. I first noticed in linux-2.4.0test9 (the first 2.4 kernel I installed and that I installed about a week before 2.4.0test10 came out) that a little while after I boot my system, my hard drive begins to seek rapidly for no apparent

Re: [PATCH] protect processes from OOM killer

2000-11-07 Thread Ingo Oeser
On Tue, Nov 07, 2000 at 11:19:37AM -0500, Chris Swiedler wrote: > Here's a small patch to allow a user to protect certain PIDs from death- > by-OOM-killer. It uses the proc entry '/proc/sys/vm/oom_protect'; echo the > PIDs to be protected: Please base it upon my OOM-Killer-API patch. htt

continuing VM madness

2000-11-07 Thread Michael Rothwell
Should kswapd and klogd ever get "do_try_to_free_pages failed"? when this happens my machine is destabilized, and pauses briefly from time to time before locking up or otherwise becoming inert. This is 2.2.16+USB. Nov 7 14:51:36 cartman kernel: VM: do_try_to_free_pages failed for kswapd... Nov

Re: Blocked processes <=> Elevator starvation?

2000-11-07 Thread Giuliano Pochini
> I just reproduced the problem in test10-pre7. Here's the > output you requested: > > vmstat 1 > procs memoryswap io system cpu > r b w swpd free buff cache si sobibo incs us sy id > 0 2 2 0 45764 76000

Failure to boot initrd FIXED

2000-11-07 Thread Richard B. Johnson
This is really linux-2.4.0-test9. The patch is obviously-correct. Alan, will you put this into some upcoming patch please. --- /usr/src/linux-2.4.0/lib/inflate.c.orig Tue Nov 7 08:52:59 2000 +++ /usr/src/linux-2.4.0/lib/inflate.c Mon Nov 6 18:01:54 2000 @@ -147,6 +147,7 @@ STATIC int in

Installing kernel 2.4

2000-11-07 Thread Anil kumar
Hi , I installed Red Hat 7.0, I am able to find the linux-2.2.16 in /usr/src These are the following steps I did to install kernel 2.4: cd /usr/src #rm -r linux # rm -rf linux-2.2.16 #tar -xvf linux-2.4.0-test9.tar #cd /usr/src #ls linux redhat #mv linux linux-2.4.0-test

  1   2   3   >