linux-um archives
 help / color / mirror / Atom feed
From: "roland" <for_spam@gmx.de>
To: Henrik Nordstrom <hno@marasystems.com>,
	Sven 'Darkman' Michels <sven@darkman.de>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	uml-user <user-mode-linux-user@lists.sourceforge.net>
Subject: [uml-devel] bug in COW? -  Re: [uml-user] uml 2.6.0-test9 crash
Date: Fri, 28 Nov 2003 02:18:57 +0100	[thread overview]
Message-ID: <010c01c3b54d$99552830$2000000a@schlepptopp> (raw)
In-Reply-To: Pine.LNX.4.44.0311280047120.28924-100000@filer.marasystems.com

Hi!
I made some further investigation.
i forgot to mention, that i`m using reiserfs and also use the copy-on-write(cow)
feature, uml has. the system-freeze i experience seems to have to do with copy-on-write.
as a test, i made a copy of my rootfs, made it available under /dev/ubd/2 inside the
uml and mounted that under /mnt. i did an extra fsck before - no inconsistency was
reported. then i did some stresstests again - worked fine!

after making the rootfs-clone a cow-filesystem (by adding ubd2=rootfsclone.cow,rootfsclone.img),
the freeze happened again when doing some heavy writing. so - am i allowed to assume, that
there is a bug in the copy-on-write code?
btw: could anybody recommend a general filesystem stresstest-tool which does the worst to
filesytems, you can do (besides formatting or overwriting)? :D
it seems, that this bug happens under certain circumstances only.  if i "dd" to an empty filesystem,
it doesn`t seem to freeze the uml at once. but it happend again after a while, when i did some
additionial copying of directory-trees while dd`ìng to disk in the background.

regards
roland

ps:
accidentally, i opened a cow-file with vi - and i saw that the path to the original readonly
filesystem image seems to be stored with full path information. would that mean: if i want to
relocate the fs-image with it`s accociated cow-file, i`m out of luck? is there any reason why
there are absolute, not relative paths inside?

pps:
> > The UML did the frist two dd's without problems, then it started to
> > hang.. i checked outside and saw the process switching states from
> > R to D and then back to R... so after a few secs the dd's did all
> > succeed and the uml is still running. So it didn't crash or so
> > but it also didn't play very well with that.
>
> Sounds as if it started to get blocked by disk I/O on the host.. ubd
> device I/O is a latency killer for UML as a blocking disk I/O operation
> will block the whole UML kernel until the host finishes.
yes - i think what hendrik says is right! this is just normal behaviour. the first 2 dd`s
ran without "problems" because the host just cached that i/o`s. then it began writing to disk
and this may have caused some delay you recognized as a "hang". in general - i/o scheduling of 2.4.x
kernels is not the very best. 2.6 kernel series has new i/o schedulers which are improved a LOT!




----- Original Message ----- 
From: "Henrik Nordstrom" <hno@marasystems.com>
To: "Sven 'Darkman' Michels" <sven@darkman.de>
Cc: <user-mode-linux-devel@lists.sourceforge.net>
Sent: Friday, November 28, 2003 12:50 AM
Subject: Re: [uml-devel] Re: [uml-user] uml 2.6.0-test9 crash


> On Thu, 27 Nov 2003, Sven 'Darkman' Michels wrote:
>
> > The UML did the frist two dd's without problems, then it started to
> > hang.. i checked outside and saw the process switching states from
> > R to D and then back to R... so after a few secs the dd's did all
> > succeed and the uml is still running. So it didn't crash or so
> > but it also didn't play very well with that.
>
> Sounds as if it started to get blocked by disk I/O on the host.. ubd
> device I/O is a latency killer for UML as a blocking disk I/O operation
> will block the whole UML kernel until the host finishes.
>
> > BTW: did you had any problems with building an uml kernel on 9.0?
>
> I have no problem with building UML on RH9, but I have a memory of some
> singnal trick which was needed at some point.. Make sure the UML is up to
> date.
>
> Regards
> Henrik
>


hi !´
i think , i`m able to crash my uml. :(

i did some stress-testing with my uml-2.6.0-test9 on 2.6.0-test9-skas host and i
unfortunately seem able to crash it very easily.

this was the way i recognized it:
first i executed
while true;do find /;done >/dev/zero &
several times and all worked well.
watched that with "top" inside the uml and found dozens of "finds" sharing the
cpu as expected(spending most of their time on system calls indeed).
on host, cpu usage of uml went to ~99% - all fine so far.

then i thought: mhhhh - ok - eat THIS:
while true;do dd if=/dev/zero of=test.dat bs=1k count=10000;done &

after executing this, my uml got stuck. no output, no response to input - even a
ping to the uml didn`t´give back a sign of life. the uml didn`t crash or panic - it
just gets stuck and unresponsive - uml process remains at 99% on the host.

at a second, third, fourth try, i isolated the problem a little bit:
one or two non looped "dd if=/dev/zero of=test.dat bs=1k count=10000" just are enough
to produce the same result.(under 2.6.0test9-skas-host and ALSO under 2.4.22-99-default
suse9 host, rootfs inside uml is suse9)

is anybody able to reproduce this?
if so - what do do further for analyzing?
i could make the uml downloadable and could send some output from strace (if i attach strace
to the remaining "99% cpu hog", it exits very quickly with a SIGALARM)

maybe an uml bug or even an issue for lkml?

regards
roland



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2003-11-28  1:14 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5.1.0.14.2.20031127102518.02675b90@mail.inboxprotection.com>
2003-11-27 21:06 ` [uml-devel] uml 2.6.0-test9 crash roland
2003-11-27 21:33   ` [uml-devel] Re: [uml-user] " Sven 'Darkman' Michels
2003-11-27 21:54     ` roland
2003-11-27 23:50     ` Henrik Nordstrom
2003-11-28  1:18       ` roland [this message]
2003-11-28  1:28         ` [uml-devel] Re: bug in COW? - " Erik Walthinsen
2003-11-28  2:11           ` [uml-devel] How to copy COW files to another machine across the network? Shao-Lin Joseph Chung
2003-11-28  8:49             ` Henrik Nordstrom
2003-11-30 21:22               ` roland
2003-11-30 21:37                 ` Henrik Nordstrom
2003-11-30 23:31                   ` Nigel Cunningham
2003-12-01  9:12                     ` roland
2003-12-06  0:04                 ` [uml-user] " Jeff Dike
2003-12-06  0:05               ` Jeff Dike
2003-11-28  9:13             ` Geert Uytterhoeven
2003-11-29  9:24               ` Richard Potter
2003-12-06  0:05           ` [uml-devel] Re: bug in COW? - Re: [uml-user] uml 2.6.0-test9 crash Jeff Dike
2003-11-28  8:39         ` Henrik Nordstrom
2003-11-28 20:42           ` roland
2003-11-28 21:35             ` Henrik Nordstrom
2003-11-30  2:29               ` roland
2003-11-30  7:47                 ` Henrik Nordstrom
2003-11-30  8:23                 ` Lynn Kerby
2003-11-30 11:36                   ` roland
2003-12-06  0:05                     ` Jeff Dike
2003-12-06  9:41                       ` Henrik Nordstrom
2003-12-06 18:18                         ` Jeff Dike
2003-12-06 23:32                           ` Henrik Nordstrom
2003-12-08  1:20                             ` roland
2003-12-08 19:21                               ` Jeff Dike
2003-12-07 10:53                         ` [uml-devel] updating 2.6 to merge 2.4 changes(was: Re: bug in COW? - Re: [uml-user] uml 2.6.0-test9 crash) BlaisorBlade
2003-12-08 20:42                           ` Jeff Dike
2003-12-08 21:32                             ` Henrik Nordstrom
2003-12-08 23:50                               ` Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='010c01c3b54d$99552830$2000000a@schlepptopp' \
    --to=for_spam@gmx.de \
    --cc=hno@marasystems.com \
    --cc=sven@darkman.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox