* Performance of ext3 on large systems
@ 2003-02-17 0:44 Martin J. Bligh
2003-02-17 1:18 ` Dave Hansen
2003-02-17 1:29 ` Andrew Morton
0 siblings, 2 replies; 10+ messages in thread
From: Martin J. Bligh @ 2003-02-17 0:44 UTC (permalink / raw)
To: linux-kernel; +Cc: lse-tech, Andrew Morton
OK, so I guess we all know that ext3 doesn't scale well. But by
accident, I have some numbers on exactly how bad it really is:
Kernbench-2: (make -j N vmlinux, where N = 2 x num_cpus)
Elapsed User System CPU
2.5.61-mjb0.1-ext3 48.47 564.13 143.16 1458.67
2.5.61-mjb0.1-ext2 46.06 563.04 115.36 1472.33
(look at system time ... eeek!)
diffprofile (+ is worse with ext3, - better)
12702 .text.lock.inode
7786 default_idle
1706 ext3_dirty_inode
1694 start_this_handle
1636 ext3_do_update_inode
1304 .text.lock.dir
983 journal_add_journal_head
903 __find_get_block_slow
797 .text.lock.sem
630 __mark_inode_dirty
567 __brelse
537 __find_get_block
523 __wake_up
459 ext3_get_inode_loc
454 find_get_page
434 __blk_queue_bounce
382 generic_fillattr
360 fd_install
357 do_get_write_access
308 d_lookup
290 vfs_read
289 do_anonymous_page
272 dput
267 file_ra_state_init
249 journal_get_write_access
243 page_remove_rmap
222 link_path_walk
220 may_open
195 vm_enough_memory
189 ext3_readdir
186 journal_stop
185 journal_dirty_metadata
152 __fput
148 update_atime
110 zap_pte_range
105 .text.lock.sched
100 fput
96 buffered_rmqueue
95 filemap_nopage
93 ext3_prepare_write
90 page_add_rmap
86 find_next_usable_block
76 block_write_full_page
71 journal_cancel_revoke
70 bh_lru_install
65 journal_unlock_journal_head
64 .text.lock.namei
63 do_page_cache_readahead
61 log_space_left
61 ext3_check_dir_entry
59 __copy_from_user_ll
58 kfree
58 journal_commit_transaction
54 kmem_cache_free
54 do_sync_read
54 .text.lock.char_dev
50 ext3_get_block_handle
...
-52 find_vma
-58 page_address
-58 get_empty_filp
-60 do_generic_mapping_read
-74 ext2_readdir
-85 generic_file_open
-87 atomic_dec_and_lock
-109 file_move
-513 dentry_open
-1468 follow_mount
-2091 .text.lock.file_table
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 0:44 Performance of ext3 on large systems Martin J. Bligh
@ 2003-02-17 1:18 ` Dave Hansen
2003-02-17 1:29 ` Andrew Morton
1 sibling, 0 replies; 10+ messages in thread
From: Dave Hansen @ 2003-02-17 1:18 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: linux-kernel, lse-tech, Andrew Morton
Martin J. Bligh wrote:
> OK, so I guess we all know that ext3 doesn't scale well. But by
> accident, I have some numbers on exactly how bad it really is:
>
> Kernbench-2: (make -j N vmlinux, where N = 2 x num_cpus)
> Elapsed User System CPU
> 2.5.61-mjb0.1-ext3 48.47 564.13 143.16 1458.67
> 2.5.61-mjb0.1-ext2 46.06 563.04 115.36 1472.33
>
> (look at system time ... eeek!)
>
> diffprofile (+ is worse with ext3, - better)
>
> 12702 .text.lock.inode
# grep -c lock_kernel fs/ext3/inode.c
35
--
Dave Hansen
haveblue@us.ibm.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 0:44 Performance of ext3 on large systems Martin J. Bligh
2003-02-17 1:18 ` Dave Hansen
@ 2003-02-17 1:29 ` Andrew Morton
2003-02-17 15:20 ` Sean Neakums
1 sibling, 1 reply; 10+ messages in thread
From: Andrew Morton @ 2003-02-17 1:29 UTC (permalink / raw)
To: Martin J. Bligh; +Cc: linux-kernel, lse-tech
"Martin J. Bligh" <mbligh@aracnet.com> wrote:
>
> (look at system time ... eeek!)
Can we just say that ext3's talents lie elsewhere?
I've got some stuff which helps a bit, but nobody has had the time
to implement the significant overhaul which is needed here.
noatime would help.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 1:29 ` Andrew Morton
@ 2003-02-17 15:20 ` Sean Neakums
2003-02-17 15:29 ` John Bradford
0 siblings, 1 reply; 10+ messages in thread
From: Sean Neakums @ 2003-02-17 15:20 UTC (permalink / raw)
To: linux-kernel
commence Andrew Morton quotation:
> "Martin J. Bligh" <mbligh@aracnet.com> wrote:
>>
>> (look at system time ... eeek!)
>
> Can we just say that ext3's talents lie elsewhere?
>
> I've got some stuff which helps a bit, but nobody has had the time
> to implement the significant overhaul which is needed here.
>
> noatime would help.
ext3 doesn't implement noatime!? Hurg...
--
/ |
[|] Sean Neakums | Size *does* matter.
[|] <sneakums@zork.net> | That's why I use Emacs.
\ |
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 15:20 ` Sean Neakums
@ 2003-02-17 15:29 ` John Bradford
2003-02-17 15:56 ` Robert Love
0 siblings, 1 reply; 10+ messages in thread
From: John Bradford @ 2003-02-17 15:29 UTC (permalink / raw)
To: Sean Neakums; +Cc: linux-kernel
> > Can we just say that ext3's talents lie elsewhere?
> >
> > I've got some stuff which helps a bit, but nobody has had the time
> > to implement the significant overhaul which is needed here.
> >
> > noatime would help.
>
> ext3 doesn't implement noatime!? Hurg...
Actually, it makes sense in a way - noatime only speeds up reads, not
writes, (access time is always updated on a write), whereas a
journaled filesystem is presumably intended to be tuned for write
performance. So, for it's intended usage, not implementing noatime
shouldn't be a huge problem, although it would be useful.
John.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 15:29 ` John Bradford
@ 2003-02-17 15:56 ` Robert Love
2003-02-17 16:06 ` Sean Neakums
2003-02-17 16:22 ` John Bradford
0 siblings, 2 replies; 10+ messages in thread
From: Robert Love @ 2003-02-17 15:56 UTC (permalink / raw)
To: John Bradford; +Cc: Sean Neakums, linux-kernel
On Mon, 2003-02-17 at 10:29, John Bradford wrote:
> > ext3 doesn't implement noatime!? Hurg...
noatime is implemented.
> Actually, it makes sense in a way - noatime only speeds up reads, not
> writes, (access time is always updated on a write), whereas a
> journaled filesystem is presumably intended to be tuned for write
> performance. So, for it's intended usage, not implementing noatime
> shouldn't be a huge problem, although it would be useful.
But updating the access time _is_ a write, even if its due to a read.
And using 'noatime' does help, and it is implemented. I guess Andrew's
statement was just misinterpreted, because this is what he said.
Robert Love
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 15:56 ` Robert Love
@ 2003-02-17 16:06 ` Sean Neakums
2003-02-17 16:22 ` John Bradford
1 sibling, 0 replies; 10+ messages in thread
From: Sean Neakums @ 2003-02-17 16:06 UTC (permalink / raw)
To: linux-kernel
commence Robert Love quotation:
> On Mon, 2003-02-17 at 10:29, John Bradford wrote:
>
>> > ext3 doesn't implement noatime!? Hurg...
>
> noatime is implemented.
>
>> Actually, it makes sense in a way - noatime only speeds up reads, not
>> writes, (access time is always updated on a write), whereas a
>> journaled filesystem is presumably intended to be tuned for write
>> performance. So, for it's intended usage, not implementing noatime
>> shouldn't be a huge problem, although it would be useful.
>
> But updating the access time _is_ a write, even if its due to a read.
> And using 'noatime' does help, and it is implemented. I guess Andrew's
> statement was just misinterpreted, because this is what he said.
Ah, yes. My bad.
--
/ |
[|] Sean Neakums | Size *does* matter.
[|] <sneakums@zork.net> | That's why I use Emacs.
\ |
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 15:56 ` Robert Love
2003-02-17 16:06 ` Sean Neakums
@ 2003-02-17 16:22 ` John Bradford
2003-02-17 16:47 ` Matti Aarnio
1 sibling, 1 reply; 10+ messages in thread
From: John Bradford @ 2003-02-17 16:22 UTC (permalink / raw)
To: Robert Love; +Cc: sneakums, linux-kernel
> > Actually, it makes sense in a way - noatime only speeds up reads, not
> > writes, (access time is always updated on a write), whereas a
> > journaled filesystem is presumably intended to be tuned for write
> > performance. So, for it's intended usage, not implementing noatime
> > shouldn't be a huge problem, although it would be useful.
>
> But updating the access time _is_ a write, even if its due to a read.
> And using 'noatime' does help, and it is implemented. I guess Andrew's
> statement was just misinterpreted, because this is what he said.
Well, yes, but that's not what I was saying - what was saying is that
if you are primarily reading anyway, there isn't much to be gained
from using EXT-3, over EXT-2.
If you are primarily writing, EXT-3 atime should be faster than EXT-2
noatime. EXT-3 notime will obviously be even faster.
John.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 16:22 ` John Bradford
@ 2003-02-17 16:47 ` Matti Aarnio
2003-02-17 17:05 ` John Bradford
0 siblings, 1 reply; 10+ messages in thread
From: Matti Aarnio @ 2003-02-17 16:47 UTC (permalink / raw)
To: John Bradford; +Cc: Robert Love, sneakums, linux-kernel
On Mon, Feb 17, 2003 at 04:22:22PM +0000, John Bradford wrote:
...
> Well, yes, but that's not what I was saying - what was saying is that
> if you are primarily reading anyway, there isn't much to be gained
> from using EXT-3, over EXT-2.
Besides of data robustness.
> If you are primarily writing, EXT-3 atime should be faster than EXT-2
> noatime. EXT-3 notime will obviously be even faster.
No. For primarily writing the 'noatime' effect disappears in background
noice. Every time you write into file, mtime will be updated, and also
ctime. Only one of i-node timestamps _not_ updated is atime...
> John.
/Matti Aarnio
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Performance of ext3 on large systems
2003-02-17 16:47 ` Matti Aarnio
@ 2003-02-17 17:05 ` John Bradford
0 siblings, 0 replies; 10+ messages in thread
From: John Bradford @ 2003-02-17 17:05 UTC (permalink / raw)
To: Matti Aarnio; +Cc: rml, sneakums, linux-kernel
> > Well, yes, but that's not what I was saying - what was saying is that
> > if you are primarily reading anyway, there isn't much to be gained
> > from using EXT-3, over EXT-2.
>
> Besides of data robustness.
Well yes, but that only matters if the filesystem isn't unmounted
cleanly.
> > If you are primarily writing, EXT-3 atime should be faster than EXT-2
> > noatime. EXT-3 notime will obviously be even faster.
>
> No. For primarily writing the 'noatime' effect disappears in background
> noice. Every time you write into file, mtime will be updated, and also
> ctime. Only one of i-node timestamps _not_ updated is atime...
Well, that's what I was implying, that for primarily writing, EXT-3
should be better than EXT-2, regardless of the atime configuration.
So, we agree :-).
John.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-02-17 16:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 0:44 Performance of ext3 on large systems Martin J. Bligh
2003-02-17 1:18 ` Dave Hansen
2003-02-17 1:29 ` Andrew Morton
2003-02-17 15:20 ` Sean Neakums
2003-02-17 15:29 ` John Bradford
2003-02-17 15:56 ` Robert Love
2003-02-17 16:06 ` Sean Neakums
2003-02-17 16:22 ` John Bradford
2003-02-17 16:47 ` Matti Aarnio
2003-02-17 17:05 ` John Bradford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®