Re: [PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Jonathan Morton wrote: > > >- the AGE_FACTOR calculation will overflow after the system has > > an uptime of just _3_ days > > Tsk tsk tsk... > > >Now if you can make something which preserves the heuristics which > >serve us so well on desktop boxes and add something that makes it > >also

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Alan Cox wrote: > > > That depends what you mean by "must not". If it's your missile guidance > > system, aircraft autopilot or life support system, the system must not run > > out of memory in the first place. If the system breaks down badly, killing > > init and thus panicking (hence

Re: [PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Rik van Riel wrote: > > On Sun, 25 Mar 2001, Martin Dalecki wrote: > > > Ah... and of course I think this patch can already go directly > > into the official kernel. The quality of code should permit > > it. I would esp. request Rik van

Re: Larger dev_t

2001-03-25 Thread Martin Dalecki
Linus Torvalds wrote: > > On Sat, 24 Mar 2001 [EMAIL PROTECTED] wrote: > > > > We need a size, and I am strongly in favor of sizeof(dev_t) = 8; > > this is already true in glibc. > > The fact that glibc is a quivering mass of bloat, and total and utter crap > makes you suggest that the Linux

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Stephen Satchell wrote: > > At 12:41 AM 3/25/01 +0100, you wrote: > >If your box is running for example a mail server, and it appears that > >another process is juste eating the free memory, do you really want to kill > >the mail server, just because it's the main process and consuming more >

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Jonathan Morton wrote: > > >Right now my best approximation is to make the OOM test be as optimistic as > >it is safe to be, and the vm_enough_memory() test as pessimistic as > >sensible. Expect a test patch to appear on this list soon. > > ...and here it is! > > This fixes a number of small

Re: Larger dev_t

2001-03-25 Thread Martin Dalecki
Jeff Garzik wrote: > > Also for 2.5, kdev_t needs to go away, along with all those arrays based > on major number, and be replaced with either "struct char_device" or > "struct block_device" depending on the device. > > I actually went through the kernel in 2.4.0-test days and did this. > Most

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Benoit Garnier wrote: > > Szabolcs Szakacsits wrote : > > > But if you start > > to think you get the conclusion that process killing can't be avoided if > > you want the system keep running. > > What's the point in keeping the OS running if the applications are silently > killed? > > If your

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Mike Galbraith wrote: > > On Sat, 24 Mar 2001, Doug Ledford wrote: > > [snip list of naughty behavior] > > > What was that you were saying about "should *never* happen"? Oh, and let's > Get off your lazy butts and do something about it. Don't work on the > oom-killer though.. that's only a

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Doug Ledford wrote: > > Horst von Brand wrote: > > > > "Christian Bodmer" <[EMAIL PROTECTED]> said: > > > > > I can't say I understand the whole MM system, however the random killing > > > of processes seems like a rather unfortunate solution to the problem. If > > > someone has a spare minute,

[PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Martin Dalecki wrote: > > I have a constructive proposal: > > It would make much sense to make the oom killer > leave not just root processes alone but processes belonging to a UID > lower > then a certain value as well (500). This would be: > > 1. Easly managable by

[PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Martin Dalecki wrote: I have a constructive proposal: It would make much sense to make the oom killer leave not just root processes alone but processes belonging to a UID lower then a certain value as well (500). This would be: 1. Easly managable by the admin. Just let oracle/www

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Doug Ledford wrote: Horst von Brand wrote: "Christian Bodmer" [EMAIL PROTECTED] said: I can't say I understand the whole MM system, however the random killing of processes seems like a rather unfortunate solution to the problem. If someone has a spare minute, maybe they could

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Mike Galbraith wrote: On Sat, 24 Mar 2001, Doug Ledford wrote: [snip list of naughty behavior] What was that you were saying about "should *never* happen"? Oh, and let's Get off your lazy butts and do something about it. Don't work on the oom-killer though.. that's only a symptom.

Re: Larger dev_t

2001-03-25 Thread Martin Dalecki
Jeff Garzik wrote: Also for 2.5, kdev_t needs to go away, along with all those arrays based on major number, and be replaced with either "struct char_device" or "struct block_device" depending on the device. I actually went through the kernel in 2.4.0-test days and did this. Most kdev_t

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Benoit Garnier wrote: Szabolcs Szakacsits wrote : But if you start to think you get the conclusion that process killing can't be avoided if you want the system keep running. What's the point in keeping the OS running if the applications are silently killed? If your box is

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Jonathan Morton wrote: Right now my best approximation is to make the OOM test be as optimistic as it is safe to be, and the vm_enough_memory() test as pessimistic as sensible. Expect a test patch to appear on this list soon. ...and here it is! This fixes a number of small but linked

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Stephen Satchell wrote: At 12:41 AM 3/25/01 +0100, you wrote: If your box is running for example a mail server, and it appears that another process is juste eating the free memory, do you really want to kill the mail server, just because it's the main process and consuming more memory and

Re: Larger dev_t

2001-03-25 Thread Martin Dalecki
Linus Torvalds wrote: On Sat, 24 Mar 2001 [EMAIL PROTECTED] wrote: We need a size, and I am strongly in favor of sizeof(dev_t) = 8; this is already true in glibc. The fact that glibc is a quivering mass of bloat, and total and utter crap makes you suggest that the Linux kernel should

Re: [PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Rik van Riel wrote: On Sun, 25 Mar 2001, Martin Dalecki wrote: Ah... and of course I think this patch can already go directly into the official kernel. The quality of code should permit it. I would esp. request Rik van Riel to have a closer look at it... - the algorithms are just

Re: [PATCH] Prevent OOM from killing init

2001-03-25 Thread Martin Dalecki
Alan Cox wrote: That depends what you mean by "must not". If it's your missile guidance system, aircraft autopilot or life support system, the system must not run out of memory in the first place. If the system breaks down badly, killing init and thus panicking (hence rebooting, if the

Re: [PATCH] OOM handling

2001-03-25 Thread Martin Dalecki
Jonathan Morton wrote: - the AGE_FACTOR calculation will overflow after the system has an uptime of just _3_ days Tsk tsk tsk... Now if you can make something which preserves the heuristics which serve us so well on desktop boxes and add something that makes it also work on your

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
[EMAIL PROTECTED] wrote: > > [to various people] > > No, ulimit does not work. (But it helps a little.) > No, /proc/sys/vm/overcommit_memory does not work. > > [to Alan] > > > Nobody feels its very important because nobody has implemented it. > > Yes, that is the right response. > What can

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
SodaPop wrote: > > On Fri, 23 Mar 2001, Martin Dalecki wrote: > > > SodaPop wrote: > > > > > > Rik, is there any way we could get a /proc entry for this, so that one > > > could do something like: > > > > I will respond; NO there is n

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
[EMAIL PROTECTED] wrote: > > Please point me to an Operating System that runs on any commonly available > platform and fits your requirements. > Nick You don't beleve me if I tell you: DOS extender and JVM (Java Virtual Machine) - To unsubscribe from this list: send the line

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
I have a constructive proposal: It would make much sense to make the oom killer leave not just root processes alone but processes belonging to a UID lower then a certain value as well (500). This would be: 1. Easly managable by the admin. Just let oracle/www and analogous users have a UID

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
SodaPop wrote: > > Rik, is there any way we could get a /proc entry for this, so that one > could do something like: I will respond; NO there is no way for security reasons this is not a good idea. > cat /proc/oom-kill-scores | sort +3 - To unsubscribe from this list: send the line

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
Rik van Riel wrote: > > On Sat, 23 Mar 2002, Martin Dalecki wrote: > > > This is due to the broken calculation formula in oom_kill(). > > Feel free to write better-working code. I don't get paid for it and I'm not idling through my days... - To unsubscribe from thi

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
Rik van Riel wrote: On Sat, 23 Mar 2002, Martin Dalecki wrote: This is due to the broken calculation formula in oom_kill(). Feel free to write better-working code. I don't get paid for it and I'm not idling through my days... - To unsubscribe from this list: send the line "unsubs

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
SodaPop wrote: Rik, is there any way we could get a /proc entry for this, so that one could do something like: I will respond; NO there is no way for security reasons this is not a good idea. cat /proc/oom-kill-scores | sort +3 - To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
I have a constructive proposal: It would make much sense to make the oom killer leave not just root processes alone but processes belonging to a UID lower then a certain value as well (500). This would be: 1. Easly managable by the admin. Just let oracle/www and analogous users have a UID

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
[EMAIL PROTECTED] wrote: Please point me to an Operating System that runs on any commonly available platform and fits your requirements. Nick You don't beleve me if I tell you: DOS extender and JVM (Java Virtual Machine) - To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
SodaPop wrote: On Fri, 23 Mar 2001, Martin Dalecki wrote: SodaPop wrote: Rik, is there any way we could get a /proc entry for this, so that one could do something like: I will respond; NO there is no way for security reasons this is not a good idea. cat /proc/oom-kill

Re: [PATCH] Prevent OOM from killing init

2001-03-23 Thread Martin Dalecki
[EMAIL PROTECTED] wrote: [to various people] No, ulimit does not work. (But it helps a little.) No, /proc/sys/vm/overcommit_memory does not work. [to Alan] Nobody feels its very important because nobody has implemented it. Yes, that is the right response. What can one say? One

Re: [PATCH] Prevent OOM from killing init

2001-03-22 Thread Martin Dalecki
Rik van Riel wrote: > > On Sat, 23 Mar 2002, Martin Dalecki wrote: > > > Uptime of a process is a much better mesaure for a killing > > candidate then it's size. > > You'll have fun with your root shell, then ;) You mean the remote one? > The current OOM code

Re: [PATCH] Prevent OOM from killing init

2001-03-22 Thread Martin Dalecki
Stephen Clouse wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, Mar 23, 2002 at 01:33:50AM +0100, Martin Dalecki wrote: > > AMEN! TO THIS! > > Uptime of a process is a much better mesaure for a killing candidate > > then it's size. >

Re: [PATCH] Prevent OOM from killing init

2001-03-22 Thread Martin Dalecki
Rik van Riel wrote: On Sat, 23 Mar 2002, Martin Dalecki wrote: Uptime of a process is a much better mesaure for a killing candidate then it's size. You'll have fun with your root shell, then ;) You mean the remote one? The current OOM code takes things like uptime, used cpu, size

Re: 5Mb missing...

2001-03-14 Thread Martin Dalecki
Jonathan Morton wrote: > > >> If crashes are routine on this machine, I'd recommend that you take > >> a serious look at your ram. (or if you're overclocking, don't) > > > >Crashes were routine, and I was not overclocking, so I took Mike's > >advice and bought a new 256MB DIMM. The computer

Re: 5Mb missing...

2001-03-14 Thread Martin Dalecki
Jonathan Morton wrote: If crashes are routine on this machine, I'd recommend that you take a serious look at your ram. (or if you're overclocking, don't) Crashes were routine, and I was not overclocking, so I took Mike's advice and bought a new 256MB DIMM. The computer hasn't crashed

Re: system call for process information?

2001-03-13 Thread Martin Dalecki
Rik van Riel wrote: > > On Tue, 13 Mar 2001, Albert D. Cahalan wrote: > > > Bloat removal: being able to run without /proc mounted. > > > > We don't have "kernel speed". We have kernel-mode screwing around > > with text formatting. > > Sounds like you might want to maintain an external patch >

Re: system call for process information?

2001-03-13 Thread Martin Dalecki
Rik van Riel wrote: On Tue, 13 Mar 2001, Albert D. Cahalan wrote: Bloat removal: being able to run without /proc mounted. We don't have "kernel speed". We have kernel-mode screwing around with text formatting. Sounds like you might want to maintain an external patch for the

Re: linux localization

2001-03-11 Thread Martin Dalecki
Alan Cox wrote: > > > My work will concern with the internationalization of Linux > > So, could anybody tell me what kinds of features should be in the > > consideration when linux be localized from english to Japanese or chinese, > > say using 2 bytes character set. > > Most of the Linux

Re: [PATCH] Penguin logos

2001-03-11 Thread Martin Dalecki
"Albert D. Cahalan" wrote: > > Geert Uytterhoeven writes: > > > - The colors for the 16 color logo are wrong. We used a hack to > > give the logo its own color palette, but this no longer works > > as a side effect of a console color map bug being fixed a while > > ago. The

Re: [PATCH] Penguin logos

2001-03-11 Thread Martin Dalecki
"Albert D. Cahalan" wrote: Geert Uytterhoeven writes: - The colors for the 16 color logo are wrong. We used a hack to give the logo its own color palette, but this no longer works as a side effect of a console color map bug being fixed a while ago. The solution is to

Re: linux localization

2001-03-11 Thread Martin Dalecki
Alan Cox wrote: My work will concern with the internationalization of Linux So, could anybody tell me what kinds of features should be in the consideration when linux be localized from english to Japanese or chinese, say using 2 bytes character set. Most of the Linux userspace

Re: [PATCH] new setprocuid syscall

2001-02-20 Thread Martin Dalecki
Peter Samuelson wrote: > > [BERECZ Szabolcs] > > Here is a new syscall. With this you can change the owner of a running > > procces. > > > + if (current->euid) > > + return -EPERM; > > Use capable(). > > > + p = find_task_by_pid(pid); > > + p->fsuid = p->euid =

Re: [PATCH] new setprocuid syscall

2001-02-20 Thread Martin Dalecki
Peter Samuelson wrote: [BERECZ Szabolcs] Here is a new syscall. With this you can change the owner of a running procces. + if (current-euid) + return -EPERM; Use capable(). + p = find_task_by_pid(pid); + p-fsuid = p-euid = p-suid = p-uid =

Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound event wait

2001-02-09 Thread Martin Dalecki
Linus Torvalds wrote: > > On Thu, 8 Feb 2001, Rik van Riel wrote: > > > On Thu, 8 Feb 2001, Mikulas Patocka wrote: > > > > > > > You need aio_open. > > > > Could you explain this? > > > > > > If the server is sending many small files, disk spends huge > > > amount time walking directory tree

Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound event wait

2001-02-09 Thread Martin Dalecki
Linus Torvalds wrote: On Thu, 8 Feb 2001, Rik van Riel wrote: On Thu, 8 Feb 2001, Mikulas Patocka wrote: You need aio_open. Could you explain this? If the server is sending many small files, disk spends huge amount time walking directory tree and seeking to inodes.

Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound event wait

2001-02-08 Thread Martin Dalecki
Linus Torvalds wrote: > > On Tue, 6 Feb 2001, Ben LaHaise wrote: > > > > On Tue, 6 Feb 2001, Stephen C. Tweedie wrote: > > > > > The whole point of the post was that it is merging, not splitting, > > > which is troublesome. How are you going to merge requests without > > > having chains of

Re: [PATCH] ident of whole-disk ext2 fs

2000-12-19 Thread Martin Dalecki
Dnia Wto 19. Grudzie? 2000 18:45, Andries Brouwer napisa?: > On Tue, Dec 19, 2000 at 06:14:04AM -0500, Paul Gortmaker wrote: > > I always disliked the unknown partition table messages you get when you > > mke2fs a whole disk and don't bother with a table at all, so I fixed it. > > Output

Re: [PATCH] ident of whole-disk ext2 fs

2000-12-19 Thread Martin Dalecki
Dnia Wto 19. Grudzie? 2000 18:45, Andries Brouwer napisa?: On Tue, Dec 19, 2000 at 06:14:04AM -0500, Paul Gortmaker wrote: I always disliked the unknown partition table messages you get when you mke2fs a whole disk and don't bother with a table at all, so I fixed it. Output before/after

Re: Adaptec AIC7XXX v 6.0.6 BETA Released

2000-12-14 Thread Martin Dalecki
"Justin T. Gibbs" wrote: > > > > >What's wrong with current? It's perfectly fine, since it's the main data > >context entity you are working with during it's usage... Just remember > >it as > >CURRENT MAIN PROBLEM the kernel is struggling with at time. > > What's wrong with the aic7xxx driver

Re: Adaptec AIC7XXX v 6.0.6 BETA Released

2000-12-14 Thread Martin Dalecki
"Justin T. Gibbs" wrote: > > >> BSD has curproc, but that is considerably less likely to be > >> used in "inoccent code" than "current". I mean, "current what?". > >> It could be anything, current privledges, current process, current > >> thread, the current time... > > > >I see and I assume

Re: Adaptec AIC7XXX v 6.0.6 BETA Released

2000-12-14 Thread Martin Dalecki
"Justin T. Gibbs" wrote: BSD has curproc, but that is considerably less likely to be used in "inoccent code" than "current". I mean, "current what?". It could be anything, current privledges, current process, current thread, the current time... I see and I assume calling a random

Re: Adaptec AIC7XXX v 6.0.6 BETA Released

2000-12-14 Thread Martin Dalecki
"Justin T. Gibbs" wrote: What's wrong with current? It's perfectly fine, since it's the main data context entity you are working with during it's usage... Just remember it as CURRENT MAIN PROBLEM the kernel is struggling with at time. What's wrong with the aic7xxx driver storing the

Re: ANNOUNCE: Linux Kernel ORB: kORBit

2000-12-11 Thread Martin Dalecki
Dietmar Kling wrote: > > Ok guys i take your arguments... > (i really loved to hear them) > > and i'd like to continue them in a > private discussion( but i am > tired now ... :) ) > > but a last one i cannot resist... > > > but why are your ideas not widespread and > so successful like

Re: ANNOUNCE: Linux Kernel ORB: kORBit

2000-12-11 Thread Martin Dalecki
Dietmar Kling wrote: Ok guys i take your arguments... (i really loved to hear them) and i'd like to continue them in a private discussion( but i am tired now ... :) ) but a last one i cannot resist... sarcasm but why are your ideas not widespread and so successful like

[PATCH] PCI id list update

2000-11-22 Thread Martin Dalecki
Just a small trivial obviously correct update... diff -ur linux/include/linux/pci_ids.h linux-mega/include/linux/pci_ids.h --- linux/include/linux/pci_ids.h Tue Nov 21 16:31:52 2000 +++ linux-mega/include/linux/pci_ids.h Tue Nov 21 18:54:58 2000 @@ -257,6 +257,11 @@ #define

[PATCH] PCI id list update

2000-11-22 Thread Martin Dalecki
Just a small trivial obviously correct update... diff -ur linux/include/linux/pci_ids.h linux-mega/include/linux/pci_ids.h --- linux/include/linux/pci_ids.h Tue Nov 21 16:31:52 2000 +++ linux-mega/include/linux/pci_ids.h Tue Nov 21 18:54:58 2000 @@ -257,6 +257,11 @@ #define

Re: [ANNOUNCE] Generalised Kernel Hooks Interface (GKHI)

2000-11-10 Thread Martin Dalecki
Alexander Viro wrote: > > On 9 Nov 2000, Mike Coleman wrote: > > > Alexander Viro <[EMAIL PROTECTED]> writes: > > > RMS had repeatedly demonstrated what he's worth as a designer > > > and programmer. Way below zero. You may like or dislike his ideology, > > > but when it comes to technical

Re: [ANNOUNCE] Generalised Kernel Hooks Interface (GKHI)

2000-11-10 Thread Martin Dalecki
Alexander Viro wrote: On 9 Nov 2000, Mike Coleman wrote: Alexander Viro [EMAIL PROTECTED] writes: shrug RMS had repeatedly demonstrated what he's worth as a designer and programmer. Way below zero. You may like or dislike his ideology, but when it comes to technical stuff... Not

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 /

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 instead

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

2000-11-06 Thread Martin Dalecki
Alan Cox wrote: > > > >Just load the driver at bootup and forget about it. Problem solved. > > > > I daily curse the name of whoever added autoload and autounload. > > Autoload maybe useful, autounload is just asking for problems. > > Deal with it. Hardware is also now auto load and auto

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

2000-11-06 Thread Martin Dalecki
David Woodhouse wrote: > > [EMAIL PROTECTED] said: > > * Driver initializes mixer to 100% muted * Userspace app sets desired > > values to /dev/mixer * Userspace app opens /dev/dsp to play sound > > > I don't see where any sound can "escape" in this scenario, and it > > doesn't require any

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

2000-11-06 Thread Martin Dalecki
David Woodhouse wrote: [EMAIL PROTECTED] said: * Driver initializes mixer to 100% muted * Userspace app sets desired values to /dev/mixer * Userspace app opens /dev/dsp to play sound I don't see where any sound can "escape" in this scenario, and it doesn't require any module data

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

2000-11-06 Thread Martin Dalecki
Alan Cox wrote: Just load the driver at bootup and forget about it. Problem solved. I daily curse the name of whoever added autoload and autounload. Autoload maybe useful, autounload is just asking for problems. Deal with it. Hardware is also now auto load and auto unloading too.

Re: ESS device "1998"

2000-11-02 Thread Martin Dalecki
Mo McKinlay wrote: > > I recently obtained an HP Omnibook XE2 laptop. It's a reasonably > nicely-specced machine, although (unsuprsingly) the hardware isn't too > well supported with Linux. > > I've given up on the internal modem (I'm 90% sure it's some kind of > software modem, and I have an

Re: 2.4.0-test10-pre6: Use of abs()

2000-11-02 Thread Martin Dalecki
Richard Henderson wrote: > > On Wed, Nov 01, 2000 at 09:46:19AM -0500, [EMAIL PROTECTED] wrote: > > What versions of gcc produce the built-in functions? > > 2.95 and previous. In 2.96 somewhere we fixed a bug that > automatically prototypes these builtin functions for you; > ie with current

Re: 2.4.0-test10-pre6: Use of abs()

2000-11-02 Thread Martin Dalecki
Richard Henderson wrote: On Wed, Nov 01, 2000 at 09:46:19AM -0500, [EMAIL PROTECTED] wrote: What versions of gcc produce the built-in functions? 2.95 and previous. In 2.96 somewhere we fixed a bug that automatically prototypes these builtin functions for you; ie with current code you

Re: ESS device 1998

2000-11-02 Thread Martin Dalecki
Mo McKinlay wrote: I recently obtained an HP Omnibook XE2 laptop. It's a reasonably nicely-specced machine, although (unsuprsingly) the hardware isn't too well supported with Linux. I've given up on the internal modem (I'm 90% sure it's some kind of software modem, and I have an external

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

2000-10-31 Thread Martin Dalecki
Horst von Brand wrote: > > Martin Dalecki <[EMAIL PROTECTED]> said: > > Peter Samuelson wrote: > > [...] > > > > * Red Hat "2.96" or CVS 2.97 will probably break any known kernel. > > > Works fine for me and 2.4.0-test10-pre5... howe

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

2000-10-31 Thread Martin Dalecki
Horst von Brand wrote: Martin Dalecki [EMAIL PROTECTED] said: Peter Samuelson wrote: [...] * Red Hat "2.96" or CVS 2.97 will probably break any known kernel. Works fine for me and 2.4.0-test10-pre5... however there are tons of preprocessor warnings in some drivers.

Re: PATCH: killing read_ahead[]

2000-10-30 Thread Martin Dalecki
Linus Torvalds wrote: > > On Wed, 25 Oct 2000, Rik van Riel wrote: > > > > OTOH, block-dev readahead makes sense for filesystems where > > the packing locality is close to the access pattern BUT NOT > > close to anything the page cache would recognise as being > > close. > > I dunno. The main

Re: 2.4.0-test10-pre6: Use of abs()

2000-10-30 Thread Martin Dalecki
Jakub Jelinek wrote: > > On Mon, Oct 30, 2000 at 03:01:16PM +0100, Martin Dalecki wrote: > > Horst von Brand wrote: > > > > > > Red Hat 7.0, i686, gcc-20001027 (Yes, I know. Just to flush out bugs on > > > both sides). > > > > > > abs()

Re: 2.4.0-test10-pre6: Use of abs()

2000-10-30 Thread Martin Dalecki
Horst von Brand wrote: > > Red Hat 7.0, i686, gcc-20001027 (Yes, I know. Just to flush out bugs on > both sides). > > abs() is used at least in: > > arch/i386/kernel/time.c > drivers/md/raid1.c > drivers/sound/sb_ess.c > > gcc warns about use of a non-declared function each time. > > No

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

2000-10-30 Thread Martin Dalecki
Peter Samuelson wrote: > > > So which is the recommended compiler for each kernel version 2.2.x, > > 2.4.x(pre?) nowadays? > > * 2.91.66 aka egcs 1.1.2. It has been officially blessed for 2.4 and > has been given an informal thumbs-up by Alan for 2.2. (It does NOT > work for 2.0, if you

Re: Recommended compiler? - Re: [patch] kernel/module.c (plus gratuitous rant)

2000-10-30 Thread Martin Dalecki
Peter Samuelson wrote: So which is the recommended compiler for each kernel version 2.2.x, 2.4.x(pre?) nowadays? * 2.91.66 aka egcs 1.1.2. It has been officially blessed for 2.4 and has been given an informal thumbs-up by Alan for 2.2. (It does NOT work for 2.0, if you still care

Re: 2.4.0-test10-pre6: Use of abs()

2000-10-30 Thread Martin Dalecki
Horst von Brand wrote: Red Hat 7.0, i686, gcc-20001027 (Yes, I know. Just to flush out bugs on both sides). abs() is used at least in: arch/i386/kernel/time.c drivers/md/raid1.c drivers/sound/sb_ess.c gcc warns about use of a non-declared function each time. No definition for

Re: 2.4.0-test10-pre6: Use of abs()

2000-10-30 Thread Martin Dalecki
Jakub Jelinek wrote: On Mon, Oct 30, 2000 at 03:01:16PM +0100, Martin Dalecki wrote: Horst von Brand wrote: Red Hat 7.0, i686, gcc-20001027 (Yes, I know. Just to flush out bugs on both sides). abs() is used at least in: arch/i386/kernel/time.c drivers/md/raid1.c

Re: PATCH: killing read_ahead[]

2000-10-30 Thread Martin Dalecki
Linus Torvalds wrote: On Wed, 25 Oct 2000, Rik van Riel wrote: OTOH, block-dev readahead makes sense for filesystems where the packing locality is close to the access pattern BUT NOT close to anything the page cache would recognise as being close. I dunno. The main reason I'd like

Re: PATCH: killing read_ahead[]

2000-10-24 Thread Martin Dalecki
Jeff Garzik wrote: > > > Please have a look at the following patch and feel free to be scared > > by the fact how UTTERLY BROKEN and ARBITRARY the current usage of the > > read_ahead[] array and during the whole past decade was! > > If you really care about clean internal interfaces this should

Re: PATCH: killing read_ahead[]

2000-10-24 Thread Martin Dalecki
Rik van Riel wrote: > > On Tue, 24 Oct 2000, Martin Dalecki wrote: > > > The most amanzing thing is that the whole test10-pre5 kernel > > with this patch applied doesn't show any performance penalties > > for me at all! And of corse it's about 10k smaller... >

Re: PATCH: killing read_ahead[]

2000-10-24 Thread Martin Dalecki
Rik van Riel wrote: On Tue, 24 Oct 2000, Martin Dalecki wrote: The most amanzing thing is that the whole test10-pre5 kernel with this patch applied doesn't show any performance penalties for me at all! And of corse it's about 10k smaller... Ideally we should (IMHO) get rid of all

Re: PATCH: killing read_ahead[]

2000-10-24 Thread Martin Dalecki
Jeff Garzik wrote: Please have a look at the following patch and feel free to be scared by the fact how UTTERLY BROKEN and ARBITRARY the current usage of the read_ahead[] array and during the whole past decade was! If you really care about clean internal interfaces this should be one

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Igmar Palsenberg wrote: > > > I wouldn't mind, either, if this didn't mean that programs compiled > > on rehdat need redhat versions of the development toolchain / runtime > > environment to use them :( Ever tried to recompile SuSE apache from the src.rpm they provide? I wish you good louck

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Richard Henderson wrote: > Frankly, I didn't even consider C++ ABI compatibility with other > Linux vendors, since I think that's a losing proposition until > everyone is using gcc3. We were _already_ incompatible, since > there are a mix of egcs and gcc versions involved. C++ ABI breaking:

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Marc Lehmann wrote: > If you disagree personally or technically with me you either say this > in public or private or keep quiet. Attacking me over totally unrelated > things is obviously some maneuver to distract people from the real, > kernel-related question, and I have no idea why you are

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Alan Cox wrote: > > > > They released a supported ex-Cygnus people approved compiler. > > > > Which still makes it an broken, experimental, unreleased and unofficial > > compiler, with all the consequences I said. > > And didnt you write something called pgcc once. And then there isn't

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Marc Lehmann wrote: > > On Sat, Sep 30, 2000 at 03:07:49PM +0100, Alan Cox <[EMAIL PROTECTED]> wrote: > > > If you don't like this, I suggest you send mail complaining to RedHat. > > > Customer complaints are going to be the only way that RH is going to be > > > influenced not to play games like

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Marc Lehmann wrote: On Sat, Sep 30, 2000 at 03:07:49PM +0100, Alan Cox [EMAIL PROTECTED] wrote: If you don't like this, I suggest you send mail complaining to RedHat. Customer complaints are going to be the only way that RH is going to be influenced not to play games like this

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Alan Cox wrote: They released a supported ex-Cygnus people approved compiler. Which still makes it an broken, experimental, unreleased and unofficial compiler, with all the consequences I said. And didnt you write something called pgcc once. And then there isn't anything I could

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Marc Lehmann wrote: If you disagree personally or technically with me you either say this in public or private or keep quiet. Attacking me over totally unrelated things is obviously some maneuver to distract people from the real, kernel-related question, and I have no idea why you are doing

Re: What is up with Redhat 7.0?

2000-10-01 Thread Martin Dalecki
Richard Henderson wrote: Frankly, I didn't even consider C++ ABI compatibility with other Linux vendors, since I think that's a losing proposition until everyone is using gcc3. We were _already_ incompatible, since there are a mix of egcs and gcc versions involved. C++ ABI breaking: SuSE

Re: Linux kernel modules development in C++

2000-09-28 Thread Martin Dalecki
Ragnar Hojland Espinosa wrote: > > On Thu, Sep 28, 2000 at 01:45:40AM +0200, Igmar Palsenberg wrote: > > Some arguments why not to use it in the kernel : > > > > - C++ gives overhead. With something like a kernel that's unwanted. > > You pay for what you use, no less no more. C++ compilers

Re: Linux kernel modules development in C++

2000-09-28 Thread Martin Dalecki
Ragnar Hojland Espinosa wrote: On Thu, Sep 28, 2000 at 01:45:40AM +0200, Igmar Palsenberg wrote: Some arguments why not to use it in the kernel : - C++ gives overhead. With something like a kernel that's unwanted. You pay for what you use, no less no more. C++ compilers don't

Re: [PATCH] abuse of macros in swab.h

2000-09-19 Thread Martin Dalecki
Andrea Arcangeli wrote: > > On Wed, Sep 20, 2000 at 01:22:50AM +0200, Andi Kleen wrote: > > Better would be to use statement blocks like > > #define bla(x) ({ __u32 tmp__ = (x); ; tmp__; }) > > Agreed. Not agreed. In this case older version of GCC will have almost exactly the same provlems

Re: [PATCH] abuse of macros in swab.h

2000-09-19 Thread Martin Dalecki
Andi Kleen wrote: > > On Tue, Sep 19, 2000 at 07:13:31PM -0400, Alexander Viro wrote: > > Nice spotting, but bad fix, IMO. swab...() stuff is a perfect example of > > the dangerous use of macros. BTW, 2.4 has the same problem. > > inlines usually generate worse code than macros (the gcc manual

Re: [PATCH] abuse of macros in swab.h

2000-09-19 Thread Martin Dalecki
Andrea Arcangeli wrote: On Wed, Sep 20, 2000 at 01:22:50AM +0200, Andi Kleen wrote: Better would be to use statement blocks like #define bla(x) ({ __u32 tmp__ = (x); ; tmp__; }) Agreed. Not agreed. In this case older version of GCC will have almost exactly the same provlems as with

<    1   2   3   >