From: "Dieter Nützel" <Dieter.Nuetzel@hamburg.de>
To: Oleg Drokin <green@namesys.com>
Cc: Chris Mason <mason@suse.com>,
Szakacsits Szabolcs <szaka@sienet.hu>,
Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2003@gmx.net>,
reiserfs-list@namesys.com
Subject: Re: Horrible ftruncate performance
Date: Thu, 17 Jul 2003 20:12:58 +0200 [thread overview]
Message-ID: <200307172012.58581.Dieter.Nuetzel@hamburg.de> (raw)
In-Reply-To: <20030716105705.GC4955@namesys.com>
Am Mittwoch, 16. Juli 2003 12:57 schrieb Oleg Drokin:
> Hello!
>
> On Wed, Jul 16, 2003 at 12:47:53PM +0200, Dieter N?tzel wrote:
> > > > Somewhat.
> > > > Mouse movement is OK, now. But...
> > > > 1+0 Records aus
> > > > 0.000u 3.090s 0:16.81 18.3% 0+0k 0+0io 153pf+0w
> > > > 0.000u 0.050s 0:00.27 18.5% 0+0k 0+0io 122pf+0w
> > > > INSTALL/SOURCE> time dd if=/dev/zero of=sparse1 bs=1 seek=200G
> > > > count=1 ; time sync
> > > > 1+0 Records ein
> > > > 1+0 Records aus
> > > > 0.000u 3.010s 0:15.27 19.7% 0+0k 0+0io 153pf+0w
> > > > 0.000u 0.020s 0:01.01 1.9% 0+0k 0+0io 122pf+0w
> > >
> > > So you create a file in 15 seconds
> >
> > Right.
> >
> > > and remove it in 15 seconds.
> >
> > No. "Normaly" ~5 seconds.
>
> Ah, yes. Looking at wrong timeing info ;)
> I see that yesterday without the patch you had 1m, 9s, 5s, 2m times
> for 4 deletes...
>
> > > Kind of nothing changed except mouse now moves,
> > >
> > > > INSTALL/SOURCE> time rm sparse ; time sync
> > > > 0.000u 14.990s 1:31.15 16.4% 0+0k 0+0io 130pf+0w
> > > > 0.000u 0.030s 0:00.22 13.6% 0+0k 0+0io 122pf+0w
> > >
> > > So the stuff fell out of cache and we need to read it again.
> >
> > Shouldn't this take only 15 seconds, then?
>
> Probably there was some seeking due to removal of lots of blocks.
>
> > Worst case was ~5 minutes.
>
> Yeah, this is of course sad.
> BTW is this with search_reada patch?
Yes.
> What if you try without it?
Do _NOT_ really help.
INSTALL/SOURCE> l
insgesamt 1032
drwxrwxr-x 2 root root 176 Jul 17 20:05 .
drwxr-xr-x 3 root root 72 Jul 3 01:39 ..
-rw-r--r-- 1 nuetzel users 452390 Jul 15 00:29
kmplayer-0.7.96.tar.bz2
-rw-r--r-- 1 nuetzel users 403358 Jul 14 21:46
modutils-2.4.21-18.src.rpm
-rw-r--r-- 1 nuetzel users 194505 Jul 14 22:01
procps-2.0.13-1.src.rpm
INSTALL/SOURCE> time dd if=/dev/zero of=sparse bs=1 seek=200G count=1 ; time
sync
1+0 Records ein
1+0 Records aus
0.000u 2.770s 0:15.88 17.4% 0+0k 0+0io 153pf+0w
0.000u 0.000s 0:00.79 0.0% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time dd if=/dev/zero of=sparse1 bs=1 seek=200G count=1 ; time
sync
1+0 Records ein
1+0 Records aus
0.010u 2.440s 0:15.03 16.3% 0+0k 0+0io 153pf+0w
0.010u 0.020s 0:01.08 2.7% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time dd if=/dev/zero of=sparse2 bs=1 seek=200G count=1 ; time
sync
1+0 Records ein
1+0 Records aus
0.010u 2.710s 0:14.94 18.2% 0+0k 0+0io 153pf+0w
0.000u 0.000s 0:01.76 0.0% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> l
insgesamt 615444
drwxrwxr-x 2 root root 248 Jul 17 20:06 .
drwxr-xr-x 3 root root 72 Jul 3 01:39 ..
-rw-r--r-- 1 nuetzel users 452390 Jul 15 00:29
kmplayer-0.7.96.tar.bz2
-rw-r--r-- 1 nuetzel users 403358 Jul 14 21:46
modutils-2.4.21-18.src.rpm
-rw-r--r-- 1 nuetzel users 194505 Jul 14 22:01
procps-2.0.13-1.src.rpm
-rw-r--r-- 1 nuetzel users 214748364801 Jul 17 20:06 sparse
-rw-r--r-- 1 nuetzel users 214748364801 Jul 17 20:06 sparse1
-rw-r--r-- 1 nuetzel users 214748364801 Jul 17 20:07 sparse2
INSTALL/SOURCE> time sync
0.000u 0.000s 0:00.02 0.0% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time rm sparse2 ; time sync
0.000u 4.860s 0:04.82 100.8% 0+0k 0+0io 130pf+0w
0.010u 0.000s 0:00.03 33.3% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time rm sparse1 ; time sync
0.000u 4.910s 0:04.82 101.8% 0+0k 0+0io 130pf+0w
0.000u 0.020s 0:00.03 66.6% 0+0k 0+0io 122pf+0w
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
INSTALL/SOURCE> time rm sparse ; time sync
0.010u 6.500s 0:48.47 13.4% 0+0k 0+0io 130pf+0w
0.000u 0.000s 0:00.02 0.0% 0+0k 0+0io 122pf+0w
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
INSTALL/SOURCE> l
insgesamt 1032
drwxrwxr-x 2 root root 176 Jul 17 20:08 .
drwxr-xr-x 3 root root 72 Jul 3 01:39 ..
-rw-r--r-- 1 nuetzel users 452390 Jul 15 00:29
kmplayer-0.7.96.tar.bz2
-rw-r--r-- 1 nuetzel users 403358 Jul 14 21:46
modutils-2.4.21-18.src.rpm
-rw-r--r-- 1 nuetzel users 194505 Jul 14 22:01
procps-2.0.13-1.src.rpm
Overwrite:
INSTALL/SOURCE> time sync
0.000u 0.000s 0:00.02 0.0% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time dd if=/dev/zero of=sparse bs=1 seek=200G count=1 ; time
sync
1+0 Records ein
1+0 Records aus
0.010u 2.890s 0:16.17 17.9% 0+0k 0+0io 153pf+0w
0.000u 0.020s 0:01.27 1.5% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> l
insgesamt 205836
drwxrwxr-x 2 root root 200 Jul 17 20:09 .
drwxr-xr-x 3 root root 72 Jul 3 01:39 ..
-rw-r--r-- 1 nuetzel users 452390 Jul 15 00:29
kmplayer-0.7.96.tar.bz2
-rw-r--r-- 1 nuetzel users 403358 Jul 14 21:46
modutils-2.4.21-18.src.rpm
-rw-r--r-- 1 nuetzel users 194505 Jul 14 22:01
procps-2.0.13-1.src.rpm
-rw-r--r-- 1 nuetzel users 214748364801 Jul 17 20:09 sparse
INSTALL/SOURCE> time sync
0.000u 0.010s 0:00.09 11.1% 0+0k 0+0io 122pf+0w
INSTALL/SOURCE> time dd if=/dev/zero of=sparse bs=1 seek=200G count=1 ; time
sync
1+0 Records ein
1+0 Records aus
0.010u 0.000s 0:00.00 0.0% 0+0k 0+0io 153pf+0w
0.000u 0.010s 0:00.07 14.2% 0+0k 0+0io 122pf+0w
-Dieter
next prev parent reply other threads:[~2003-07-17 18:12 UTC|newest]
Thread overview: 68+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-10 3:23 Horrible ftruncate performance Szakacsits Szabolcs
2003-07-10 5:29 ` Oleg Drokin
2003-07-10 7:30 ` Szakacsits Szabolcs
2003-07-10 9:21 ` Oleg Drokin
2003-07-10 8:17 ` Szakacsits Szabolcs
2003-07-10 10:01 ` Oleg Drokin
2003-07-10 14:01 ` Szakacsits Szabolcs
2003-07-10 15:44 ` Oleg Drokin
2003-07-11 14:35 ` Dieter Nützel
2003-07-11 14:49 ` Oleg Drokin
2003-07-11 15:16 ` Dieter Nützel
2003-07-11 15:24 ` Oleg Drokin
2003-07-11 15:27 ` Dieter Nützel
2003-07-11 15:32 ` Oleg Drokin
2003-07-11 15:35 ` Dieter Nützel
2003-07-11 15:32 ` Dieter Nützel
2003-07-11 15:36 ` Marc-Christian Petersen
2003-07-11 15:36 ` Dieter Nützel
2003-07-11 15:38 ` Oleg Drokin
2003-07-11 15:34 ` Marc-Christian Petersen
2003-07-11 15:44 ` Oleg Drokin
2003-07-11 17:09 ` Chris Mason
2003-07-11 17:27 ` Dieter Nützel
2003-07-11 18:32 ` Chris Mason
2003-07-11 19:51 ` Dieter Nützel
2003-07-12 1:37 ` Szakacsits Szabolcs
2003-07-12 5:16 ` Carl-Daniel Hailfinger
2003-07-12 3:49 ` Szakacsits Szabolcs
2003-07-12 13:51 ` Dieter Nützel
2003-07-15 12:19 ` Szakacsits Szabolcs
2003-07-15 16:48 ` Dieter Nützel
2003-07-15 17:05 ` Oleg Drokin
2003-07-15 19:55 ` Dieter Nützel
2003-07-16 10:35 ` Oleg Drokin
2003-07-16 10:47 ` Dieter Nützel
2003-07-16 10:57 ` Oleg Drokin
2003-07-17 18:12 ` Dieter Nützel [this message]
2003-07-22 16:43 ` Hans Reiser
2003-07-22 16:50 ` Chris Mason
2003-07-22 18:09 ` Hans Reiser
2003-07-22 18:24 ` Chris Mason
2003-07-23 0:16 ` Oleg Drokin
2003-07-23 6:25 ` Hans Reiser
2003-07-23 5:49 ` Voicu Liviu
2003-07-23 7:32 ` Hans Reiser
2003-07-23 7:19 ` Voicu Liviu
2003-07-23 6:14 ` Hans Reiser
2003-07-23 14:38 ` Chris Mason
2003-07-23 14:55 ` Hans Reiser
2003-07-23 16:20 ` Chris Mason
2003-07-23 12:25 ` Dieter Nützel
2003-07-23 13:39 ` Hans Reiser
2003-07-23 13:46 ` Dieter Nützel
2003-07-23 13:52 ` Hans Reiser
2003-07-23 14:24 ` Dieter Nützel
2003-07-23 15:24 ` Philippe Gramoullé
2003-07-12 14:05 ` Dieter Nützel
2003-07-13 13:00 ` Oleg Drokin
2003-07-13 12:58 ` Oleg Drokin
2003-07-14 8:45 ` Hans Reiser
2003-07-13 13:03 ` Oleg Drokin
2003-07-15 11:51 ` Szakacsits Szabolcs
2003-07-15 13:51 ` Hans Reiser
2003-07-11 19:23 ` Philippe Gramoullé
2003-08-03 14:05 ` Hans Reiser
2003-08-04 13:41 ` Chris Mason
2003-07-11 14:27 ` Chris Mason
2003-07-11 14:32 ` Dieter Nützel
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=200307172012.58581.Dieter.Nuetzel@hamburg.de \
--to=dieter.nuetzel@hamburg.de \
--cc=c-d.hailfinger.kernel.2003@gmx.net \
--cc=green@namesys.com \
--cc=mason@suse.com \
--cc=reiserfs-list@namesys.com \
--cc=szaka@sienet.hu \
/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 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.