Athlon/VIA Kernel Experimentation (mmx.c)

2001-05-04 Thread Seth Goldberg
Hi, I implemented a small check loop at the end of the fast_page_copy routine in mmx.c for the Athlon. Booting the resulting kernel yields an interesting result. Every single time, the kernel panics RIGHT AFTER it frees unused kernel memory from bootup. I encourage those of you with the same

tmpfs doesn't update free memory stats?

2001-05-04 Thread Jacek Kopecky
Hello. 8-) I'm not in the list, please cc your replies to me. After upgrading to 2.4.4 I started using tmpfs for /tmp and I noticed a strange behavior: dd if=/dev/zero of=blah bs=1024 count=102400 # increased my used swap space by approx. 100MiB (correct) rm blah # did not

Re: pcmcia problems after upgrading from 2.4.3-ac7 to 2.4.4

2001-05-04 Thread Martin.Knoblauch
Alan Cox wrote: my DE-620 pccard stopped working after upgrading the kernel from 2.4.3-ac7 to 2.4.4. This is on a Toshiba 4080XCDT. I used the good .config from the 2.4.3-ac7 build to do a make oldconfig. The symptoms at startup are: 2.4.4 has older pcmcia than 2.4.3-ac7. It might

Re: [PATCH] strtok - strsep (The Easy Cases)

2001-05-04 Thread Rene Scharfe
Am Freitag, 4. Mai 2001 02:57 schrieb Rusty Russell: In message 01050120580701.01713@golmepha you write: Hello, Hi! the patch at the bottom does the bulk job of strtok replacement. It's a very boring patch, containing easy cases, only. It became a bit big, too, but I trust you can

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Rogier Wolff
Linus Torvalds wrote: On Thu, 3 May 2001, Alan Cox wrote: Obvious one is to go to the next power of two clear. The question is mainly _which_ power of two. I don't think we can round up infinitely, as that might just end up causing us to not have any PCI space at all. Or we could

added a new feature: disable pc speaker

2001-05-04 Thread Nico Schottelius
Hi guys! I have searched a long time for a method to disable the internal speaker for every application, every daemon and so on. With the help of [] I have found the right file : drivers/char/vt.c Now I have made some changes to this file (from 2.4.4 kernel). I wanted to ask you whether you

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Rogier Wolff
Linus Torvalds wrote: On Thu, 3 May 2001, Alan Cox wrote: Ditto for some CD based stuff. You burn the important binaries to the front of the CD, then at boot dd 64Mb to /dev/null to prime the libraries and avoid a lot of seeking during boot up from the CD-ROM. However I could do

Re: added a new feature: disable pc speaker

2001-05-04 Thread Simon Richter
On Fri, 4 May 2001, Nico Schottelius wrote: I have searched a long time for a method to disable the internal speaker for every application, every daemon and so on. It would be cool if that weren't a compile time option but configurable at runtime (via sysctl). Simon -- GPG public key

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Jens Axboe
On Fri, May 04 2001, Rogier Wolff wrote: On Thu, 3 May 2001, Alan Cox wrote: Ditto for some CD based stuff. You burn the important binaries to the front of the CD, then at boot dd 64Mb to /dev/null to prime the libraries and avoid a lot of seeking during boot up from the CD-ROM.

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Marc SCHAEFER
Rogier Wolff [EMAIL PROTECTED] wrote: during boot. I can then reshuffle my disk to have that 50M of data at the beginning and reading all that into 50M of cache, I can save Wasn't that one of the goals of the LVM project, along snapshots and block-level HSM ? - To unsubscribe from this list:

Re: SMP races in proc with thread_struct

2001-05-04 Thread Todd Inglett
Ok, I've got this isolated. Here's the sequence of events: 1. Some process T (probably top) opens /proc/N/stat. 2. While holding tasklist_lock the proc code does a get_task_struct() to add a ref count to the page. 3. Process N exits. 4. The parent of process N exits. 5. Process T reads

Re: Swap space deallocation speed. (fwd)

2001-05-04 Thread Stephen C. Tweedie
Hi, On Thu, May 03, 2001 at 12:03:39AM -0400, Dave Mielke wrote: unresponsive. The relevant line in the log, as you can find in the attached crash.log file, appears to be: Unable to handle kernel paging request at virtual address 00020024 Apr 16 11:23:06 dave kernel: esi: 0002

Re: added a new feature: disable pc speaker

2001-05-04 Thread Keith Owens
On Fri, 04 May 2001 13:37:08 +0200, Nico Schottelius [EMAIL PROTECTED] wrote: I have searched a long time for a method to disable the internal speaker for every application, every daemon and so on. Userspace problem, userspace fix. setterm -blength 0 (text) xset b 0 (X11) - To unsubscribe

Re: pcmcia problems after upgrading from 2.4.3-ac7 to 2.4.4

2001-05-04 Thread Martin.Knoblauch
Martin.Knoblauch wrote: Alan Cox wrote: my DE-620 pccard stopped working after upgrading the kernel from 2.4.3-ac7 to 2.4.4. This is on a Toshiba 4080XCDT. I used the good .config from the 2.4.3-ac7 build to do a make oldconfig. The symptoms at startup are: 2.4.4 has older

Re: SMP races in proc with thread_struct

2001-05-04 Thread Keith Owens
On Fri, 04 May 2001 07:34:20 -0500, Todd Inglett [EMAIL PROTECTED] wrote: But this is where hell breaks loose. Every process has a valid parent -- unless it is dead and nobody cares. Process N has already exited and released from the tasklist while its parent was still alive. There was no

Question on mmap(2) with kernel alocated memory

2001-05-04 Thread Terry Barnaby
I am trying to mmap() into user space a kernel buffer and am having problems. I have a simple test example, can someone please tell me what I have got wrong ? In a driver I do: uint*kva; kva = (uint*)kmalloc(4096, GFP_KERNEL); *kva = 0x11223344; printk(Address: %p %lx %x\n,

Re: Linux 2.4.4-ac3, asm problem in asm-i386/rwsem.h using gcc 3.0 CVS

2001-05-04 Thread Christian Iseli
[EMAIL PROTECTED] said: Looks like if you remove the inline from the function definition this compiles OK. Yup, looks like a compiler bug. I submitted a bug report to GCC-gnats. Cheers, Christian - To unsubscribe from this list: send the line

Re: Athlon/VIA Kernel Experimentation (mmx.c)

2001-05-04 Thread Brian Gerst
Seth Goldberg wrote: Hi, I implemented a small check loop at the end of the fast_page_copy routine in mmx.c for the Athlon. Booting the resulting kernel yields an interesting result. Every single time, the kernel panics RIGHT AFTER it frees unused kernel memory from bootup. I

Re: SMP races in proc with thread_struct

2001-05-04 Thread Andreas Schwab
Keith Owens [EMAIL PROTECTED] writes: | On Fri, 04 May 2001 07:34:20 -0500, | Todd Inglett [EMAIL PROTECTED] wrote: | But this is where hell breaks loose. Every process has a valid parent | -- unless it is dead and nobody cares. Process N has already exited and | released from the tasklist

Re: tmpfs doesn't update free memory stats?

2001-05-04 Thread Christoph Rohland
Hi Jacek, On Fri, 4 May 2001, Jacek Kopecky wrote: I'm not in the list, please cc your replies to me. After upgrading to 2.4.4 I started using tmpfs for /tmp and I noticed a strange behavior: dd if=/dev/zero of=blah bs=1024 count=102400 # increased my used swap space by approx.

Re: SMP races in proc with thread_struct

2001-05-04 Thread Brian Gerst
Andreas Schwab wrote: Keith Owens [EMAIL PROTECTED] writes: | On Fri, 04 May 2001 07:34:20 -0500, | Todd Inglett [EMAIL PROTECTED] wrote: | But this is where hell breaks loose. Every process has a valid parent | -- unless it is dead and nobody cares. Process N has already exited and |

Re: Linux syscall speed -- was X15 rootin-tootin webserver

2001-05-04 Thread Michael Rothwell
There seems to be a contingent of people on the LKML who think that it is appropriate to flame people off-list, in order to bask in their own superiority, or prove that they are smarter by pointing out that someone is an idiot, etc. I would figure that most intelligent people would simply ignore

Re: Maximum files per Directory

2001-05-04 Thread Chris Mason
On Tuesday, May 01, 2001 04:57:02 PM -0600 Andreas Dilger [EMAIL PROTECTED] wrote: H. Peter Anvin writes: Not correct, there can't be more than 2^15 *directories* in a single directory. I belive this is an ext2 limitation. I see that reiserfs plays some tricks with the directory

Re: Athlon/VIA Kernel Experimentation (mmx.c)

2001-05-04 Thread Alan Cox
is to find out why this copy is not working properly... For me the output is: ... Freeing unused kernel memory: 188k freed Kernel panic: fast_page_copy: dest value @ 0xcfed1000 (39312036) does not equal source value @ cfed4000(79005b)! Swap the panic for a printk/BUG() and see who

Re: FS Structs

2001-05-04 Thread Anton Altaparmakov
At 22:29 03/05/01, Anders Karlsson wrote: I am not subscribed to the list, so if I could be CC'd on eventual replies I would be grateful. Sure. I have a question regarding some of the parts of the overall filesystem structure in the 2.4 kernel. (Kernel 2.4.[34].) In the file fs/super.c the

console=ttyS0 doesn't work 2.4.4

2001-05-04 Thread Nick Papadonis
I compiled the Linux kernel v2.4.4 and can't get 'console=ttyS0,115200 console=tty0' to work. This appended line works fine when I boot into my 2.2.x series kernel. Anyone have similar problems? Has anyone verified serial console output works with the 2.4.x kernels? Thanks. - Nick Here is

expand_stack: small race

2001-05-04 Thread Manfred Spraul
expand_stack is only protected with down_read(mmap_sem), and thus 2 thread could grow a vma at the same time. I think the spin_lock(page_table_lock) should be moved up before the calculation of grow. And map_user_kiobuf() doesn't honor VM_LOCKED for VM_GROWSDOWN segments. Probably it should be

Re: [PATCH] strtok - strsep (The Easy Cases)

2001-05-04 Thread Rusty Russell
In message 01050413055100.00907@golmepha you write: Am Freitag, 4. Mai 2001 02:57 schrieb Rusty Russell: There are two cases where the substitution is problematic: Yes, but... The cases which my patch modifies are of a different kind: The very first hunk of your patch is wrong. I

Re: SMP races in proc with thread_struct

2001-05-04 Thread Andreas Ferber
Hi, On Fri, May 04, 2001 at 10:46:43PM +1000, Keith Owens wrote: For a read only case, the only important thing is not to die, one occurrence of bad data is tolerable. Strong NACK. The pages where the bad data comes from may in some cases already be reclaimed for other data, probably

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Andrea Arcangeli
On Fri, May 04, 2001 at 01:15:28PM +0400, Ivan Kokshaysky wrote: However, there are 3 reasons why I prefer 16-bit counters: I assume you mean 32bit counter. (that gives max 2^16 sleepers) a. max user processes ulimit is much lower than 64K anyway; the 2^16 limit is not a per-user limit it is

close()

2001-05-04 Thread Mike Harrold
Hi, We have a server which runs on a machine that now runs the new 2.4 kernel. Since upgrading we've seen periods where it seems to just hang for minutes at a time (anywhere form 5 minutes to an hour). I was finally able to get a core dump of the server during one of these periods and it appears

Re: dhcp problem with realtek 8139 clone with rh 7.1

2001-05-04 Thread Michael K. Johnson
In linux-kernel, you wrote: I have som problem with my realtek 8139 clone. It won't work with dhcp against my isp. I've just installed redhat 7.1 on a i386 with to (exactly the same) network cards, one that should be connected to my isp, and one to the local network. My local network works fine,

modularized SYSENTER support

2001-05-04 Thread Andy Polyakov
Hi, Below is the comment section from my SYSENTER module. Code itself (~20K) can be found at the URL below. I want to point out that I'm not subscribed to the linux-kernel list and would appreciate if you drop me a CC when (or if:-) commenting. http://fy.chalmers.se/~appro/linux/sysenter.c

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Andrea Arcangeli
On Fri, May 04, 2001 at 01:56:14PM +0200, Jens Axboe wrote: Or you can rewrite block_read/write to use the page cache, in which case you'd have more luck doing the above. once block_dev is in pagecache there will obviously be no-way to share cache between the block device and the filesystem,

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Eric W. Biederman
Alan Cox [EMAIL PROTECTED] writes: I suspect it would be safe to round up to the next megabyte, possibly up to 64MB or so. But much more would make me nervous. Any suggestions? I'd go for 1MByte simply because I've not seen an EBDA/NVRAM area that large stuck at the top of RAM. 1Mb

Re: close()

2001-05-04 Thread Mike Harrold
What kind of file was it close()ing? - jim Ah, good question. I should have specified this. It is a socket that is being closed, not a regular file (the socket has nonblocking set). p.s. Are you familiar with the strace(1) utility? It might help you get more information the next time

Re: console=ttyS0 doesn't work 2.4.4

2001-05-04 Thread Nick Papadonis
Solved. Disregard. I didn't have serial console support compiled in. Nick Papadonis [EMAIL PROTECTED] writes: I compiled the Linux kernel v2.4.4 and can't get 'console=ttyS0,115200 console=tty0' to work. This appended line works fine when I boot into my 2.2.x series kernel. Anyone have

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Alan Cox
There are a couple of options here. 1) read the MTRRs unless the BIOS is braindead it will set up that area as write-back. At any rate we shouldn't ever try to allocate a pci region that is write-back cached. 'unless the BIOS is braindead'. Right. We only got into this problem because

Re: Linux syscall speed -- was X15 rootin-tootin webserver

2001-05-04 Thread Dan Mann
I followed the link and read the article. I am glad you sent the link. I am glad to see the Linux kernel doing so well. Does anyone else have any Linux Kernel benchmark related links that are interesting? Thank You, Dan - Original Message - From: Michael Rothwell [EMAIL PROTECTED]

Re: smp_send_stop() and disable_local_APIC()

2001-05-04 Thread Eric W. Biederman
Matt D. Robinson [EMAIL PROTECTED] writes: It looks like around 2.3.30 or so, someone added the call disable_local_APIC() to smp_send_stop(). I'm not sure what the intention was, but I'm getting some strange behavior as a result based on some code I'm writing. Basically, I'm doing the

Re: SMP races in proc with thread_struct

2001-05-04 Thread Alexander Viro
On Fri, 4 May 2001, Todd Inglett wrote: Ok, I've got this isolated. Here's the sequence of events: 1. Some process T (probably top) opens /proc/N/stat. 2. While holding tasklist_lock the proc code does a get_task_struct() to add a ref count to the page. 3. Process N exits. 4. The

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Eric W. Biederman
Alan Cox [EMAIL PROTECTED] writes: There are a couple of options here. 1) read the MTRRs unless the BIOS is braindead it will set up that area as write-back. At any rate we shouldn't ever try to allocate a pci region that is write-back cached. 'unless the BIOS is braindead'.

2.4.4-ac4 - oops on unload cdrom module

2001-05-04 Thread Pavel Roskin
Hello! This oops happens when I run rmmod cdrom on a 2.4.4-ac4 kernel with CONFIG_SYSCTL enabled. It doesn't happen if CONFIG_SYSCTL is disabled. Full .config is here: http://www.red-bean.com/~proski/linux/config sr_mod isn't loaded at this point. Reference to sd_mod looks weird. After this

Re: dhcp problem with realtek 8139 clone with rh 7.1

2001-05-04 Thread Adam
Michael K. Johnson wrote: In linux-kernel, you wrote: I have som problem with my realtek 8139 clone. It won't work with dhcp against my isp. I've just installed redhat 7.1 on a i386 with to (exactly the same) network cards, one that should be connected to my isp, and one to the local

Re: dhcp problem with realtek 8139 clone with rh 7.1

2001-05-04 Thread Enrico Scholz
Michael K. Johnson [EMAIL PROTECTED] writes: I have som problem with my realtek 8139 clone. It won't work with dhcp against my isp. [...] Determining IP configuration... Operation failed. This sounds more like pump failing to negotiate dhcp properly than like a failure in the driver.

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Ivan Kokshaysky
On Fri, May 04, 2001 at 10:22:53AM +0100, David Howells wrote: I don't know whether it will (a) compile, or (b) work... I don't have an alpha to play with. Neither (a) nor (b) ;-) Corrected asm-alpha/rwsem.h attached. Also small fix for lib/rwsem.c -- RWSEM_WAITING_BIAS-RWSEM_ACTIVE_BIAS

Re: Athlon/VIA Kernel Experimentation (mmx.c)

2001-05-04 Thread Seth Goldberg
Doh. I feel like a moron. Thanks.. will do... --S Brian Gerst wrote: Seth Goldberg wrote: Hi, I implemented a small check loop at the end of the fast_page_copy routine in mmx.c for the Athlon. Booting the resulting kernel yields an interesting result. Every single time,

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Alan Cox
Seriously. With the general attitude of distrusting BIOS's I have been amazed at the number of things linux expects the BIOS to get right. In practice windows seem to trust the BIOS much less than linux does. It becomes more and more obvious over time exactly why. One problem however is

Re: dhcp problem with realtek 8139 clone with rh 7.1

2001-05-04 Thread Alan Cox
I've had the same problem with the 8139too drivers and DHCP. The reason I figure it must be the drivers is because in the 2.4.3 kernel, I'm able to use the 8139too drivers with DHCP without any problems. In 2.4.4 it locks my system. Multiple such reports - seems the 8139too update broke

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Ivan Kokshaysky
On Fri, May 04, 2001 at 04:33:59PM +0200, Andrea Arcangeli wrote: the 2^16 limit is not a per-user limit it is a global one so the max user process ulimit is irrelevant. Only the number of pid and the max number of tasks supported by the architecture is a relevant limit for this. Thanks

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Andrea Arcangeli
On Fri, May 04, 2001 at 09:02:33PM +0400, Ivan Kokshaysky wrote: But I can't imagine how this feature could be useful in a real life :-) It will be required by the time we can fork more than 2^16 tasks (which I'm wondering if it could be just the case if you use CLONE_PID as root, I didn't

Re: dhcp problem with realtek 8139 clone with rh 7.1

2001-05-04 Thread Jeff Garzik
Alan Cox wrote: I've had the same problem with the 8139too drivers and DHCP. The reason I figure it must be the drivers is because in the 2.4.3 kernel, I'm able to use the 8139too drivers with DHCP without any problems. In 2.4.4 it locks my system. Multiple such reports - seems the

REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Seth Goldberg
Hi, After removing my head from my a**, I revised the code that checks the memory copy in the fast_page_copy routine. The machine then proceeded not to stop at my panic, but I got my normal oopses. I then had an idea and removed all the prefetch instructions from the beginning of the routine

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Linus Torvalds
On Fri, 4 May 2001, Rogier Wolff wrote: Linus Torvalds wrote: Ehh. Doing that would be extremely stupid, and would slow down your boot and nothing more. Ehhh, Linus, Linearly reading my harddisk goes at 26Mb per second. You obviously didn't read my explanation of _why_ it is stupid.

Re: X15 alpha release: as fast as TUX but in user space (fwd)

2001-05-04 Thread dean gaudet
um, presumably this new magic page won't eliminate the old syscall entry points. so just use those for UML. -dean On Fri, 4 May 2001, Pavel Machek wrote: Hi! That means that for fooling closed-source statically-linked binary, If they are using glibc then you have the right to the

Re: smp_send_stop() and disable_local_APIC()

2001-05-04 Thread Matt D. Robinson
Eric W. Biederman wrote: Matt D. Robinson [EMAIL PROTECTED] writes: It looks like around 2.3.30 or so, someone added the call disable_local_APIC() to smp_send_stop(). I'm not sure what the intention was, but I'm getting some strange behavior as a result based on some code I'm

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Linus Torvalds
On Fri, 4 May 2001, Andrea Arcangeli wrote: On Fri, May 04, 2001 at 01:56:14PM +0200, Jens Axboe wrote: Or you can rewrite block_read/write to use the page cache, in which case you'd have more luck doing the above. once block_dev is in pagecache there will obviously be no-way to share

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Alexander Viro
On Fri, 4 May 2001, Linus Torvalds wrote: Now, if you want to speed up accesses, there are things you can do. You can lay out the filesystem in the access order - trace the IO accesses at bootup (which file, which offset, which metadata block?) and lay out the blocks of the files in

Re: Possible PCI subsystem bug in 2.4

2001-05-04 Thread Linus Torvalds
On 4 May 2001, Eric W. Biederman wrote: There are a couple of options here. 1) read the MTRRs unless the BIOS is braindead it will set up that area as write-back. At any rate we shouldn't ever try to allocate a pci region that is write-back cached. This one I'd really hesitate to

[PATCH][RFC] Re: SMP races in proc with thread_struct

2001-05-04 Thread Alexander Viro
Linus, could you consider the patch below? As it is, access to /proc/pid/status of dead process with dead parent is possible and leads to access to freed memory. Besides, cd /proc/pid means that even after pid is gone, readdir() _and_ lookup on /proc/pid work. Patch makes sure that

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Linus Torvalds
On Fri, 4 May 2001, Alexander Viro wrote: Ehh... There _is_ a way to deal with that, but it's deeply Albertesque: * add pagecache access for block device * put your real root on /dev/loop0 (setup from initrd) * dd You're one sick puppy. Now, the above is basically

Re: X15 alpha release

2001-05-04 Thread Fabio Riccardi
Ingo, I'm really impressed by your feedback! How do you manage to discover so many things? I fixed the bug, and checked that it hadn't affected my specweb results. Indeed specweb never issues closing 1.1 connections, it would use a 1.0 request with close in that case. Moreover even if a

Re: X15 alpha release: as fast as TUX but in user space

2001-05-04 Thread Fabio Riccardi
ok, I'm totally ignorant here, what is a pipelined request? btw: please be kind with my mistakes, X15 _is_ alpha code anyway... :) - Fabio Ingo Molnar wrote: yet another anomaly i noticed. X15 does not appear to handle pipelined HTTP/1.1 requests properly, it ignores the second request if

Re: modularized SYSENTER support

2001-05-04 Thread Manfred Spraul
Q. How come the handler doesn't manage so called bottom halves or soft IRQs? A. There is no need for this. Soft IRQs can only appear at exit from hardware interrupt handlers. Indeed, we can't count on user app. being around and performing a system call when it comes to

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Richard Gooch
Linus Torvalds writes: Now, if you want to speed up accesses, there are things you can do. You can lay out the filesystem in the access order - trace the IO accesses at bootup (which file, which offset, which metadata block?) and lay out the blocks of the files in exactly the right order.

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Alexander Viro
On Fri, 4 May 2001, Linus Torvalds wrote: On Fri, 4 May 2001, Alexander Viro wrote: Ehh... There _is_ a way to deal with that, but it's deeply Albertesque: ^^^ * add pagecache access for block device *

Re: added a new feature: disable pc speaker

2001-05-04 Thread Oystein Viggen
Quoth Keith Owens: Userspace problem, userspace fix. setterm -blength 0 (text) xset b 0 (X11) Well, some buggy programs don't care about you turning off beeping in X. I think gnome-terminal or such has its own checkbox for turning beeps on or off. I still agree that this is fixing

Re: X15 alpha release: as fast as TUX but in user space

2001-05-04 Thread Davide Libenzi
On 04-May-2001 Fabio Riccardi wrote: ok, I'm totally ignorant here, what is a pipelined request? http://www.w3.org/Protocols/HTTP/Performance/Pipeline.html QUOTE A pipelined application implementation buffers its output before writing it to the underlying TCP stack, roughly equivalent to

Patch for ymfpci in 2.4.4

2001-05-04 Thread Pete Zaitcev
Hello: Here are updates from ALSA. The interrupt acknowledge has a potential bug report for it in RH bugzilla. Power-up fix I include just because, Alan bounced it to me from sound-hackers; Also Jeff Garzik asked for it. I wanted to include it with full PM support, but perhaps not. -- Pete ---

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Richard Gooch
Alexander Viro writes: On Fri, 4 May 2001, Richard Gooch wrote: However, doing an ioctl(2) on the block device won't help. So the question is, where to add the hook? One possibility is the FS, and record inum,bnum pairs. But of course we don't have a way of accessing via inum in

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Jens Axboe
On Fri, May 04 2001, Richard Gooch wrote: The idea I had (motivated by the desire to eliminate random disc seeks, which is the limiting factor in how fast my boxes boot) was: - init(8) issues an ioctl(2) on the root FS block device which turns on recording of block reads (it records block

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Linus Torvalds
On Fri, 4 May 2001, Alexander Viro wrote: ObProcfs: I don't think that walking the page tables is a good way to compute RSS, especially since VM maintains the thing. Well, the VM didn't always use to maintain the stuff it does now, so I bet that most of the code is just old code that still

Re: REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Manfred Spraul
--- __asm__ __volatile__ ( 158c157 3: movw $0x1AEB, 1b\n --- 3: movw $0x1AEB, 1b\n /* jmp on 26 bytes */ 166c165 */ --- 170c169 1: nop\n /* prefetch 320(%0)\n */ --- 1: prefetch 320(%0)\n

Re: Maximum files per Directory

2001-05-04 Thread Andreas Dilger
Chris writes: On Tuesday, May 01, 2001 04:57:02 PM -0600 Andreas Dilger [EMAIL PROTECTED] wrote: I see that reiserfs plays some tricks with the directory i_nlink count. If you exceed 64536 links in a directory, it reverts to 1 and no longer tracks the link count. Correct. The link

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Alexander Viro
On Fri, 4 May 2001, Richard Gooch wrote: Two of them: use less bloated shell (and link it statically) and clean your rc scripts. No, because I'm not using the latest bloated version of bash, and I'm Umm... Last version of bash I could call not bloated was _long_ time ago. Something

RE: DPT I2O RAID and Linux I2O

2001-05-04 Thread Patrick Allaire
Ok thats nothing to do with I2O itself. Some hardware has the messaging layer built into it as the messenger is very simple and stuff like the 21554 are using in I2O controllers. You might find i2o_pci.c and the i2o_core message passing code interesting but probably not that much. The I2O

Re: REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Seth Goldberg
On Fri, 4 May 2001, Manfred Spraul wrote: | --- | __asm__ __volatile__ ( | 158c157 | 3: movw $0x1AEB, 1b\n | --- | 3: movw $0x1AEB, 1b\n /* jmp on 26 bytes */ | 166c165 | */ | --- | | 170c169 | 1: nop\n /* prefetch 320(%0)\n */

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Richard Gooch
Alexander Viro writes: On Fri, 4 May 2001, Richard Gooch wrote: Two of them: use less bloated shell (and link it statically) and clean your rc scripts. No, because I'm not using the latest bloated version of bash, and I'm Umm... Last version of bash I could call not bloated

[Patch] encapsulate shmem access to shmem_inode_info

2001-05-04 Thread Christoph Rohland
Hi, On 24 Apr 2001, Christoph Rohland wrote: Hi Al, On Tue, 24 Apr 2001, Alexander Viro wrote: So yes, IMO having such patches available _is_ a good thing. And in 2.5 we definitely want them in the tree. If encapsulation part gets there during 2.4 and separate allocation is available for

Re: REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Brian Gerst
Seth Goldberg wrote: Hi, After removing my head from my a**, I revised the code that checks the memory copy in the fast_page_copy routine. The machine then proceeded not to stop at my panic, but I got my normal oopses. I then had an idea and removed all the prefetch instructions from

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Alexander Viro
On Fri, 4 May 2001, Richard Gooch wrote: I don't bother splitting /usr off /. I gave up doing that when disc became cheap. There's no point anymore. And since I have a lightweight Yes, there is. Locality. Resistance to fs fuckups. Resistance to disk fuckups. Easier to restore from tape.

RE added a new feature: disable pc speaker

2001-05-04 Thread Nico Schottelius
Keith Owens wrote: On Fri, 04 May 2001 13:37:08 +0200, Nico Schottelius [EMAIL PROTECTED] wrote: I have searched a long time for a method to disable the internal speaker for every application, every daemon and so on. Userspace problem, userspace fix. This sounds good :) ... but -

3ware 6410 RAID 10 performance?

2001-05-04 Thread Larry McVoy
I'm looking for people who know about the 3ware 6410 driver. I've got one of these and sometimes it goes fast and sometimes it doesn't. The bad case seems to happen after memory has a lot of cached blocks in it. I've tried 2.2.15, 2.4.4, and 2.4.3-ac9 and they all behave pretty similarly.

Re: [PATCH] SMP race in ext2 - metadata corruption.

2001-05-04 Thread Richard Gooch
Alexander Viro writes: On Fri, 4 May 2001, Richard Gooch wrote: I don't bother splitting /usr off /. I gave up doing that when disc became cheap. There's no point anymore. And since I have a lightweight Yes, there is. Locality. Resistance to fs fuckups. Resistance to disk fuckups.

Re: Maximum files per Directory

2001-05-04 Thread Chris Mason
On Friday, May 04, 2001 01:15:22 PM -0600 Andreas Dilger [EMAIL PROTECTED] wrote: Chris writes: On Tuesday, May 01, 2001 04:57:02 PM -0600 Andreas Dilger [EMAIL PROTECTED] wrote: I see that reiserfs plays some tricks with the directory i_nlink count. If you exceed 64536 links in a

Re: 3ware 6410 RAID 10 performance?

2001-05-04 Thread Larry McVoy
More data: the test file is 2GB in size. When I do a reboot and time the reading of the entire file, the first time the performance is great, 27MB. The second time it sucks, 2.7MB. I tried clearing memory by allocating and pounding on an array of 512MB (size of main mem), that clears out memory

Re: added a new feature: disable pc speaker

2001-05-04 Thread Nico Schottelius
setterm -blength 0 (text) xset b 0 (X11) Well, some buggy programs don't care about you turning off beeping in X. I think gnome-terminal or such has its own checkbox for turning beeps on or off. Exactly. I still agree that this is fixing userspace bugs in the kernel, and probably

Re: added a new feature: disable pc speaker

2001-05-04 Thread Oystein Viggen
Quoth Nico Schottelius: Can somebody give me a hint where to find documentation about sysctl and howto use/program that ? This is what Simon and David suggested. But as long as I am not able to make sysctl's, I would like to add this feature under the General setup. What do you think

Re: 3ware 6410 RAID 10 performance?

2001-05-04 Thread Larry McVoy
And yet more data - Under 2.2.15 using 3ware's driver rather than the one shipped with the kernel, one complete read goes at 35MB/sec (nice). The second one starts out there and then drops down to 4MB/sec at the 1.2GB offset. Here's the cool part - if I unmount, rmmod the driver, insmod,

3c900 card and kernel 2.4.3

2001-05-04 Thread r.verhees
Hi there, when i install kernel 2.4.3 or higher on my slackware system the card (3c900) gets detected but doesn't do anything, i also get the line using NWAY 8 or something like that (had to switch back to 2.4.2 to type e-mail) wondered if anyone else had this problem and if there's some way to

RFC: new zero copy pipe

2001-05-04 Thread Manfred Spraul
I've rewritten the single copy pipe code again. Main changes: * doesn't use map_user_kiobuf anymore. That function locked the pages into memory. DoS attacks were possible. Now pages stay pageable. * simpler code, fewer loops. * support added for set_fs(KERNEL_DS)+pipe_write * all transfers that

Re: [OT] Interrupting select.

2001-05-04 Thread Olaf Dietsche
Hi, Peter T. Breuer [EMAIL PROTECTED] writes: A month of sundays ago Alan Cox wrote: What IS the magic combination that makes select interruptible by honest-to-goodness non-blocked signals! man [seriously man sigaction] Equally seriously .. all signals are unblocked in my code

Re: REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Alan Cox
the memory copy in the fast_page_copy routine. The machine then proceeded not to stop at my panic, but I got my normal oopses. I then had an Ok idea and removed all the prefetch instructions from the beginning of the routine and tried the resultin kernel. I now have no crashes. What

Sending packets from within the kernel

2001-05-04 Thread bp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am working on an kernel module which forwards TCP segments from one interface to another (basic routing, no proxy or listener socket), but which needs to be able to generate some segments completely independently of the client--server data

Re: 2.4.4-ac4 - oops on unload cdrom module

2001-05-04 Thread Andrzej Krzysztofowicz
This oops happens when I run rmmod cdrom on a 2.4.4-ac4 kernel with CONFIG_SYSCTL enabled. It doesn't happen if CONFIG_SYSCTL is disabled. sr_mod isn't loaded at this point. Reference to sd_mod looks weird. After this oops the cdrom module remains in memory in the deleted state. Unable

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Richard Henderson
On Thu, May 03, 2001 at 07:47:47PM +0400, Ivan Kokshaysky wrote: - removed some mb's for non-SMP This isn't correct. Either you need atomic updates or you don't. If you don't, then you shouldn't be using ll/sc at all. If you do (perhaps to coordinate with devices) then the barriers are

Re: [patch] 2.4.4 alpha semaphores optimization

2001-05-04 Thread Richard Henderson
On Thu, May 03, 2001 at 07:47:47PM +0400, Ivan Kokshaysky wrote: Initially I tried to use __builtin_expect in the rwsem.h, but found that it doesn't help at all in the small inline functions - it works as expected only in a reasonably large block of code. Eh? Would you give me an example

Re: [PATCH] strtok - strsep (The Easy Cases)

2001-05-04 Thread Ren=E9=20Scharfe
Rusty Russell [EMAIL PROTECTED] schrieb am 04.05.01: In message 01050413055100.00907@golmepha you write: Am Freitag, 4. Mai 2001 02:57 schrieb Rusty Russell: There are two cases where the substitution is problematic: Yes, but... The cases which my patch modifies are of a

Re: 3ware 6410 RAID 10 performance?

2001-05-04 Thread Larry McVoy
On Fri, May 04, 2001 at 02:03:35PM -0700, Adam Radford wrote: Larry, If there's anything to fix in the driver for this problem I'd be interested, however I have not seen this problem before. What benchmark (and options) are you running? bonnie++ ? BTW... I am the author of the Linux

Re: REVISED: Experimentation with Athlon and fast_page_copy

2001-05-04 Thread Alan Cox
prefetch 320(%0) can fetch memory behind the end of the source page. Perhaps it accesses memory in the ISA hole, or beyond the end of memory? Could you post the e820 map from dmesg? It's possible to build manually a memory map. Could you build one with wide margins from dangerous areas?

<    1   2   3   4   >