Hi all! It seems the current ext3 code has some problems; my machine is running 2.4.6-ac1 with ext3-0.9 patches on top of it. This afternoon, I was doing some testing of a little piece of code on my machine, and I was able to crash it. What this program does is, in effect something like (pseudo-code) for(i=0; i<100; i++) { fd=creat file-i truncate fd, 50M mmap fd close fd fill the mmaped file-i with some 50MB of data munmap file-i } for(i=0; i<100; i++) { unlink file-i } When I run this with file-i on my ext2 partition, I'm not able to hang my machine, if I run it on a (plain, no lvm or raid) ext3 partition, it is quite simple to get it to crash reproducibly. About the hardware: this is a dual P-II, with 256 MB RAM, and ide disks, of which some are configured as raid devices. I'm having some troubles catching the oops, either the serial port of my laptop isn't working correctly anymore, or one of my cats has been playing to enthousiasticly with my nullmodem cable. Will try to fix that later, or, if that doesn't even work, write down the oops manually etc. Regards, -- Q_. Jasper Spaans <j@sp3r.net> `~\ http://jsp.ds9a.nl/ Mr /\ Tel/Fax: +31-84-8749842 Zap Move '.sig' for great justice!
Stephen C. Tweedie
2001-Jul-12 22:50 UTC
Re: ext3fs crash with lots of mmap/munmap/unlink activity
Hi, On Fri, Jul 13, 2001 at 12:24:21AM +0200, Jasper Spaans wrote:> > It seems the current ext3 code has some problems; my machine is running > 2.4.6-ac1 with ext3-0.9 patches on top of it. This afternoon, I was doing > some testing of a little piece of code on my machine, and I was able to > crash it.Does the attached patch (which is already in ext3 CVS, both on the head and in the 0.9 branch) help? I've been doing mmap-heavy stress testing over the past couple of days and have had no problems with this patch applied. (It affects concurrent access to sparse files, with a pattern which mmap tends to lead to.)> I'm having some troubles catching the oops, either the serial port of my > laptop isn't working correctly anymore, or one of my cats has been playing > to enthousiasticly with my nullmodem cable. > > Will try to fix that later, or, if that doesn't even work, write down the > oops manually etc.Thanks, there's not a lot else I can do without either a complete copy of a program to reproduce it here, or a crash trace. Cheers, Stephen
Reasonably Related Threads
- basic question about token bucket filter
- RE: ext3fs still uses sequential search of file names in director ies?
- So, what about stable quota support in ext3fs?
- RE: ext3fs still uses sequential search of file names in director
- Ext3fs performance/kjournald deadlock issue