All of lore.kernel.org
 help / color / mirror / Atom feed
* Reiser4 DOS
@ 2004-05-02 13:38 Michael Buesch
  2004-05-02 13:54 ` Rene Rebe
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Michael Buesch @ 2004-05-02 13:38 UTC (permalink / raw)
  To: reiserfs-list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm running linux-2.6.5 with latest reiser4 snapshot patch.
The following script makes my system completely
unresponsive in a short time.

#!/bin/sh
mount -treiser4 /dev/hdX /mnt/reiser4
cd /mnt/reiser4
while `/bin/true`; do
	cd metas
done

- -- 
Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAlPn4FGK1OIvVOP4RApOgAJ9JRZIll4hLLIL2Ml0ve7Xb3qagYQCeP9xp
puYCi/4tQPJfrffz0VatWck=
=6bBp
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 13:38 Reiser4 DOS Michael Buesch
@ 2004-05-02 13:54 ` Rene Rebe
  2004-05-02 14:12   ` Michael Buesch
  2004-05-02 18:33 ` mjt
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Rene Rebe @ 2004-05-02 13:54 UTC (permalink / raw)
  To: mbuesch; +Cc: reiserfs-list

Hi,

On: Sun, 2 May 2004 15:38:47 +0200,
    Michael Buesch <mbuesch@freenet.de> wrote:

> #!/bin/sh
> mount -treiser4 /dev/hdX /mnt/reiser4
> cd /mnt/reiser4
> while `/bin/true`; do
> 	cd metas
> done

Are you sure this does not happen on other filesystem? This loop
mainly creates process creation pressure and is more likely some
scheduler thing than Reiser4.

Maybe you can cure this using:

while : ; do
...

Sincerely yours,
  René Rebe
    - ROCK Linux stable release maintainer

--  
René Rebe - Europe/Germany/Berlin
  rene@rocklinux.org rene@rocklinux-consulting.de
http://www.rocklinux.org http://www.rocklinux-consulting.de


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 13:54 ` Rene Rebe
@ 2004-05-02 14:12   ` Michael Buesch
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Buesch @ 2004-05-02 14:12 UTC (permalink / raw)
  To: Rene Rebe; +Cc: reiserfs-list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 02 May 2004 15:54, you wrote:
> Are you sure this does not happen on other filesystem? This loop

No, I don't know another filesystem with some kind of these
meta-files and directories.

> mainly creates process creation pressure and is more likely some
> scheduler thing than Reiser4.
> 
> Maybe you can cure this using:
> 
> while : ; do
> ...

Same thing. Memory usage grows and grows until the
system is dead.

> 
> Sincerely yours,
>   René Rebe
>     - ROCK Linux stable release maintainer

- -- 
Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAlQHkFGK1OIvVOP4RAogNAJ4x4OsLwitzzkz0wHkISY6ifmE1+wCfZ6GY
cONDV0t989B5RuCWiDh65ZM=
=Bfys
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 13:38 Reiser4 DOS Michael Buesch
  2004-05-02 13:54 ` Rene Rebe
@ 2004-05-02 18:33 ` mjt
  2004-05-02 19:39   ` Hans Reiser
  2004-05-03 11:59 ` Nikita Danilov
  2004-05-03 14:29 ` Redeeman
  3 siblings, 1 reply; 8+ messages in thread
From: mjt @ 2004-05-02 18:33 UTC (permalink / raw)
  To: Michael Buesch; +Cc: reiserfs-list

On Sun, May 02, 2004 at 03:38:47PM +0200, Michael Buesch wrote:
>
>#!/bin/sh
>mount -treiser4 /dev/hdX /mnt/reiser4
>cd /mnt/reiser4
>while `/bin/true`; do
>	cd metas
>done

Do I remember something of my own, or wasn't there some discussion about
this?

"Should meta files have meta files"

I'd say this is a bug, meta files seem like they shouldn't have meta
data, by definition.

Is this going away in the next snapshot?

What about the metas dir inheriting +x from it's parent DIRECTORY, and
not necessarily parent FILE?

-- 
mjt


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 18:33 ` mjt
@ 2004-05-02 19:39   ` Hans Reiser
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Reiser @ 2004-05-02 19:39 UTC (permalink / raw)
  To: Markus Törnqvist; +Cc: Michael Buesch, reiserfs-list, nikita

Markus Törnqvist wrote:

>On Sun, May 02, 2004 at 03:38:47PM +0200, Michael Buesch wrote:
>  
>
>>#!/bin/sh
>>mount -treiser4 /dev/hdX /mnt/reiser4
>>cd /mnt/reiser4
>>while `/bin/true`; do
>>	cd metas
>>done
>>    
>>
>
>Do I remember something of my own, or wasn't there some discussion about
>this?
>
>"Should meta files have meta files"
>
>I'd say this is a bug, meta files seem like they shouldn't have meta
>data, by definition.
>  
>
Nikita....

>Is this going away in the next snapshot?
>
>What about the metas dir inheriting +x from it's parent DIRECTORY, and
>not necessarily parent FILE?
>
>  
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 13:38 Reiser4 DOS Michael Buesch
  2004-05-02 13:54 ` Rene Rebe
  2004-05-02 18:33 ` mjt
@ 2004-05-03 11:59 ` Nikita Danilov
  2004-05-03 16:01   ` Hans Reiser
  2004-05-03 14:29 ` Redeeman
  3 siblings, 1 reply; 8+ messages in thread
From: Nikita Danilov @ 2004-05-03 11:59 UTC (permalink / raw)
  To: Michael Buesch; +Cc: reiserfs-list

Michael Buesch writes:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 > 
 > Hi,
 > 
 > I'm running linux-2.6.5 with latest reiser4 snapshot patch.
 > The following script makes my system completely
 > unresponsive in a short time.
 > 
 > #!/bin/sh
 > mount -treiser4 /dev/hdX /mnt/reiser4
 > cd /mnt/reiser4
 > while `/bin/true`; do
 > 	cd metas
 > done

One can DoS any Linux file-system by

$ while : ;do mkdir x && cd x ;done

Due to some shell peculiarities (like doing getcwd() on each cd), it may
be necessary to re-write this in C. Problem is less grave on SMP system,
but it's only matter of running enough instances of this in parallel. :)

Nikita.

 > 
 > - -- 
 > Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]
 > 
 > -----BEGIN PGP SIGNATURE-----
 > Version: GnuPG v1.2.4 (GNU/Linux)
 > 
 > iD8DBQFAlPn4FGK1OIvVOP4RApOgAJ9JRZIll4hLLIL2Ml0ve7Xb3qagYQCeP9xp
 > puYCi/4tQPJfrffz0VatWck=
 > =6bBp
 > -----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-02 13:38 Reiser4 DOS Michael Buesch
                   ` (2 preceding siblings ...)
  2004-05-03 11:59 ` Nikita Danilov
@ 2004-05-03 14:29 ` Redeeman
  3 siblings, 0 replies; 8+ messages in thread
From: Redeeman @ 2004-05-03 14:29 UTC (permalink / raw)
  To: Reiserfs Mailinglist

On Sun, 2004-05-02 at 15:38, Michael Buesch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I'm running linux-2.6.5 with latest reiser4 snapshot patch.
> The following script makes my system completely
> unresponsive in a short time.
> 
> #!/bin/sh
> mount -treiser4 /dev/hdX /mnt/reiser4
> cd /mnt/reiser4
> while `/bin/true`; do
> 	cd metas
> done
> 
i tried this, my system doesent lock in any form :) however, it does use
alot cpu, but still my system runs strong

> - -- 
> Regards Michael Buesch  [ http://www.tuxsoft.de.vu ]
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQFAlPn4FGK1OIvVOP4RApOgAJ9JRZIll4hLLIL2Ml0ve7Xb3qagYQCeP9xp
> puYCi/4tQPJfrffz0VatWck=
> =6bBp
> -----END PGP SIGNATURE-----
-- 
Regards, Redeeman
()  ascii ribbon campaign - against html e-mail 
/\                        - against microsoft attachments


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Reiser4 DOS
  2004-05-03 11:59 ` Nikita Danilov
@ 2004-05-03 16:01   ` Hans Reiser
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Reiser @ 2004-05-03 16:01 UTC (permalink / raw)
  To: Nikita Danilov; +Cc: Michael Buesch, reiserfs-list

why does it work? Does it really work, or does it just make the machine 
heavily loaded?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-03 16:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-02 13:38 Reiser4 DOS Michael Buesch
2004-05-02 13:54 ` Rene Rebe
2004-05-02 14:12   ` Michael Buesch
2004-05-02 18:33 ` mjt
2004-05-02 19:39   ` Hans Reiser
2004-05-03 11:59 ` Nikita Danilov
2004-05-03 16:01   ` Hans Reiser
2004-05-03 14:29 ` Redeeman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.