> -----Urspr|ngliche Nachricht-----
> Von: [email protected] [mailto:[email protected]]
> Im Auftrag von Tobias Ulmer
> Gesendet: Donnerstag, 23. April 2009 14:02
> An: Thomas Pfaff
> Cc: [email protected]
> Betreff: Re: Problem with slow disk I/O
>
>
> On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
> > I'm getting horrible disk performance compared to Ubuntu on
> my system.
> >
> > I noticed this when extracting ports.tar.gz on the same
> machine with
> > different OSs (this is something I did a while back to check for a
> > possible hardware problem when OpenBSD crashed upon extracting
> > ports.tar.gz).
> >
> > OpenBSD (ffs):
> >
> > $ time tar -zxf ports.tar.gz 0m59.90s real
> 0m1.00s user 0m6.95s system
> >
> > Ubuntu (ext3):
> >
> > $ time tar -zxf ports.tar.gz
> > real 0m18.440s
> > user 0m1.212s
> > sys 0m2.596s
> >
> > 1 minute on OpenBSD and 18.5 seconds on Ubuntu, doing the
> exact same
> > thing on the exact same hardware! Why the huge difference?
> Both are
> > default installations, except softdep is turned on.
> >
> > Thanks for any pointers or advice.
> >
> Try: time tar -zxf ports.tar.gz && sync
>
>
better use parenthesis:
time ( tar -zxf ports.tar.gz && sync )
Compare
# time sleep 1 && sleep 5
0m1.01s real 0m0.00s user 0m0.01s system
to
# time ( sleep 1 && sleep 5 )
0m6.01s real 0m0.00s user 0m0.03s system
Christoph