Unix Technical Forum

Horrible file creation/deletion performance on aix5.2 with jfs2

This is a discussion on Horrible file creation/deletion performance on aix5.2 with jfs2 within the AIX Operating System forums, part of the Unix Operating Systems category; --> I'm experiencing some really horrible performance problems on an AIX 5.2 machine with a jfs2 file system. Try the ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:14 AM
Finn Arne Gangstad
 
Posts: n/a
Default Horrible file creation/deletion performance on aix5.2 with jfs2


I'm experiencing some really horrible performance problems on an AIX
5.2 machine with a jfs2 file system.

Try the following:

# make a dummy file
dd if=/dev/zero of=tmp bs=1024k count=1

# time creating 1000 hardlinks
time perl -e 'for ($i = 1; $i < 1000; $i++) { link("tmp", "tmp.$i"); }'

# time removing 1000 hardlinks
time rm tmp.*

Both creating the hardlinks and removing them takes about 7 _seconds_
on my AIX machine (on a local disk). Other compareable OSes (Solaris,
Linux, HP-UX, ...) can easily do this 100 times faster.

So - I'm wondering, what am i missing? Is there some option somewhere
I forgot to enable?

- Finn Arne



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:14 AM
smallpond
 
Posts: n/a
Default Re: Horrible file creation/deletion performance on aix5.2 with jfs2

On Feb 6, 1:33 pm, Finn Arne Gangstad <fin...@fire.pvv.org> wrote:
> I'm experiencing some really horrible performance problems on an AIX
> 5.2 machine with a jfs2 file system.
>
> Try the following:
>
> # make a dummy file
> dd if=/dev/zero of=tmp bs=1024k count=1
>
> # time creating 1000 hardlinks
> time perl -e 'for ($i = 1; $i < 1000; $i++) { link("tmp", "tmp.$i"); }'
>
> # time removing 1000 hardlinks
> time rm tmp.*
>
> Both creating the hardlinks and removing them takes about 7 _seconds_
> on my AIX machine (on a local disk). Other compareable OSes (Solaris,
> Linux, HP-UX, ...) can easily do this 100 times faster.
>
> So - I'm wondering, what am i missing? Is there some option somewhere
> I forgot to enable?
>
> - Finn Arne



september:/tmp# time perl -e 'for ($i = 1; $i < 1000; $i++)
{ link("tmp", "tmp.$i"); }'

real 0m5.06s
user 0m0.02s
sys 0m0.11s
september:/tmp# time rm tmp.*

real 0m5.12s
user 0m0.05s
sys 0m0.10s

Seems like user+sys is small. Real time is large because of disk I/O
waits.
I think jfs commits the change to disk before returning.
--S

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com