xfs
[Top] [All Lists]

Problems with many processes copying directories on XFS

To: linux-xfs <linux-xfs@xxxxxxxxxxx>
Subject: Problems with many processes copying directories on XFS
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Thu, 13 Sep 2001 11:44:36 +0200
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id C5D6D57306 for <linux-xfs@oss.sgi.com>; Thu, 13 Sep 2001 11:44:36 +0200 (CEST)
Organization: Sauter AG, Basel
Sender: owner-linux-xfs@xxxxxxxxxxx
Can someone confirm what Adrian Head and me discussed in a previous
thread?

Im using the following script to reproduce crashes on 2.4.3-XFS-1.0.1
and on 2.4.10-pre2:

#!/bin/sh
 
max=$1
 
cnt=1
# count
while [ $cnt -le $max ]; do
  # fill number
  if [ $cnt -ge 100 ]; then
    strcnt=$cnt
    fill=""
  elif [ $cnt -ge 10 ]; then
    strcnt=0$cnt
    fill=" "
  else
    strcnt=00$cnt
    fill="  "
  fi
  # do something
  cp -r src $strcnt &
#  tar cf $strcnt.tar src &
  # increment
  cnt=$[ cnt + 1 ]
done

I invoke it with './mkstress 60' to get 60 cp processes. The directory
'src' has 746 dirs with 30070 files. du -sm src gives 229M. File sizes
are ~100b - 50k. Directory depth is 4 dirs max.
I was having src on XFS on Softraid5 and on plain partition. No
difference. It will just crash sooner or later.

-Simon



<Prev in Thread] Current Thread [Next in Thread>