public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* AS performance with reiser4 on 2.6.3
@ 2004-02-26 17:48 markw
  2004-02-26 18:02 ` Nikita Danilov
  0 siblings, 1 reply; 10+ messages in thread
From: markw @ 2004-02-26 17:48 UTC (permalink / raw)
  To: piggin; +Cc: reiserfs-list, linux-kernel

Hi Nick,

I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
is doing a bit worse with the AS elevator.  Although reiser4 wasn't
doing well to begin with, compared to the other filesystems.  I have
links to the STP results on our 4-ways and 8-ways here:
	http://developer.osdl.org/markw/fs/dbt2_stp_results.html

I noticed that __preempt_spin_lock was near the top of the profile and
about 2 times higher the with AS, compared to deadline.

I'm going to run through the other filesystems to see how the elevators
affect them.

-- 
Mark Wong - - markw@osdl.org
Open Source Development Lab Inc - A non-profit corporation
12725 SW Millikan Way - Suite 400 - Beaverton, OR 97005
(503) 626-2455 x 32 (office)
(503) 626-2436      (fax)
http://developer.osdl.org/markw/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-26 17:48 AS performance with reiser4 on 2.6.3 markw
@ 2004-02-26 18:02 ` Nikita Danilov
  2004-02-27  3:37   ` Hans Reiser
  2004-02-27 16:56   ` markw
  0 siblings, 2 replies; 10+ messages in thread
From: Nikita Danilov @ 2004-02-26 18:02 UTC (permalink / raw)
  To: markw; +Cc: piggin, reiserfs-list, linux-kernel

markw@osdl.org writes:
 > Hi Nick,
 > 
 > I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
 > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
 > doing well to begin with, compared to the other filesystems.  I have
 > links to the STP results on our 4-ways and 8-ways here:
 > 	http://developer.osdl.org/markw/fs/dbt2_stp_results.html

There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
performance, so it is not clear why numbers are so different. Probably
results should be averaged over several runs. Also can you run test with

http://www.namesys.com/snapshots/2004.02.25/extra/e_05-proc-sleep.patch

applied? To use it turn CONFIG_PROC_SLEEP on (depends on
CONFIG_FRAME_POINTER), and do "cat /proc/sleep" before and after test
run.

 > 
 > -- 
 > Mark Wong - - markw@osdl.org

Nikita.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-26 18:02 ` Nikita Danilov
@ 2004-02-27  3:37   ` Hans Reiser
  2004-02-27 10:43     ` Dr. Giovanni A. Orlando
  2004-02-27 17:03     ` markw
  2004-02-27 16:56   ` markw
  1 sibling, 2 replies; 10+ messages in thread
From: Hans Reiser @ 2004-02-27  3:37 UTC (permalink / raw)
  To: Nikita Danilov; +Cc: markw, piggin, reiserfs-list, linux-kernel

Nikita Danilov wrote:

>markw@osdl.org writes:
> > Hi Nick,
> > 
> > I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
> > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
> > doing well to begin with, compared to the other filesystems.  I have
> > links to the STP results on our 4-ways and 8-ways here:
> > 	http://developer.osdl.org/markw/fs/dbt2_stp_results.html
>
>There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
>performance, so it is not clear why numbers are so different. Probably
>results should be averaged over several runs.
>
The differences don't "feel" like testing error, and in any event 
something is seriously wrong.  That something is either poor fsync 
performance, or poor scalability.  In any event, please investigate, and 
please try such things as using capture on copy.  Mark, does this 
benchmark like to use fsync?

Thanks much mark for bringing this to our attention.

> Also can you run test with
>
>http://www.namesys.com/snapshots/2004.02.25/extra/e_05-proc-sleep.patch
>
>applied? To use it turn CONFIG_PROC_SLEEP on (depends on
>CONFIG_FRAME_POINTER), and do "cat /proc/sleep" before and after test
>run.
>
> > 
> > -- 
> > Mark Wong - - markw@osdl.org
>
>Nikita.
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>
>  
>


-- 
Hans



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27  3:37   ` Hans Reiser
@ 2004-02-27 10:43     ` Dr. Giovanni A. Orlando
  2004-02-27 17:03     ` markw
  1 sibling, 0 replies; 10+ messages in thread
From: Dr. Giovanni A. Orlando @ 2004-02-27 10:43 UTC (permalink / raw)
  Cc: markw, Carl Johnson, Hans Reiser, reiserfs-list, linux-kernel

Dear Mark,

    I appreciate the OSDL efforts and graphs you offer for ReiserFS 4, 
but I will
    appreciate a lot more if you adopt a distro that adopt ReiserFS 
like: SuSE, Lindows or our FTOSX.

    For us ReiserFS is important for RedHat really don't.

    So, I don't want to see again the RedHat 9, name here:
       http://developer.osdl.org/markw/fs/dbt2_stp_results.html

Thanks very much,
Giovanni

> Nikita Danilov wrote:
>
>> markw@osdl.org writes:
>> > Hi Nick,
>> > > I started getting some results with dbt-2 on 2.6.3 and saw that 
>> reiser4
>> > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
>> > doing well to begin with, compared to the other filesystems.  I have
>> > links to the STP results on our 4-ways and 8-ways here:
>> >     http://developer.osdl.org/markw/fs/dbt2_stp_results.html
>>
>> There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
>> performance, so it is not clear why numbers are so different. Probably
>> results should be averaged over several runs.
>>
> The differences don't "feel" like testing error, and in any event 
> something is seriously wrong.  That something is either poor fsync 
> performance, or poor scalability.  In any event, please investigate, 
> and please try such things as using capture on copy.  Mark, does this 
> benchmark like to use fsync?
>
> Thanks much mark for bringing this to our attention.
>
>> Also can you run test with
>>
>> http://www.namesys.com/snapshots/2004.02.25/extra/e_05-proc-sleep.patch
>>
>> applied? To use it turn CONFIG_PROC_SLEEP on (depends on
>> CONFIG_FRAME_POINTER), and do "cat /proc/sleep" before and after test
>> run.
>>
>> > > -- > Mark Wong - - markw@osdl.org
>>
>> Nikita.
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>>
>>  
>>
>
>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-26 18:02 ` Nikita Danilov
  2004-02-27  3:37   ` Hans Reiser
@ 2004-02-27 16:56   ` markw
  2004-02-27 18:25     ` Nikita Danilov
  1 sibling, 1 reply; 10+ messages in thread
From: markw @ 2004-02-27 16:56 UTC (permalink / raw)
  To: Nikita; +Cc: piggin, reiserfs-list, linux-kernel

On 26 Feb, Nikita Danilov wrote:
> markw@osdl.org writes:
>  > Hi Nick,
>  > 
>  > I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
>  > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
>  > doing well to begin with, compared to the other filesystems.  I have
>  > links to the STP results on our 4-ways and 8-ways here:
>  > 	http://developer.osdl.org/markw/fs/dbt2_stp_results.html
> 
> There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
> performance, so it is not clear why numbers are so different. Probably
> results should be averaged over several runs. Also can you run test with
> 
> http://www.namesys.com/snapshots/2004.02.25/extra/e_05-proc-sleep.patch
> 
> applied? To use it turn CONFIG_PROC_SLEEP on (depends on
> CONFIG_FRAME_POINTER), and do "cat /proc/sleep" before and after test
> run.

http://khack.osdl.org/stp/288905/results/

There are a set of /proc/sleep files there from a 4-way system.

Mark

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27  3:37   ` Hans Reiser
  2004-02-27 10:43     ` Dr. Giovanni A. Orlando
@ 2004-02-27 17:03     ` markw
  2004-02-27 17:18       ` Nikita Danilov
  1 sibling, 1 reply; 10+ messages in thread
From: markw @ 2004-02-27 17:03 UTC (permalink / raw)
  To: reiser; +Cc: Nikita, piggin, reiserfs-list, linux-kernel

On 27 Feb, Hans Reiser wrote:
> Nikita Danilov wrote:
> 
>>markw@osdl.org writes:
>> > Hi Nick,
>> > 
>> > I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
>> > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
>> > doing well to begin with, compared to the other filesystems.  I have
>> > links to the STP results on our 4-ways and 8-ways here:
>> > 	http://developer.osdl.org/markw/fs/dbt2_stp_results.html
>>
>>There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
>>performance, so it is not clear why numbers are so different. Probably
>>results should be averaged over several runs.
>>
> The differences don't "feel" like testing error, and in any event 
> something is seriously wrong.  That something is either poor fsync 
> performance, or poor scalability.  In any event, please investigate, and 
> please try such things as using capture on copy.  Mark, does this 
> benchmark like to use fsync?
> 
> Thanks much mark for bringing this to our attention.

Yes, PostgreSQL uses fsync for its database logging.  I can certainly
enable the capture on copy option.  Does that produce something that I
need to manually capture?

Mark

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27 17:03     ` markw
@ 2004-02-27 17:18       ` Nikita Danilov
  2004-02-27 18:57         ` Hans Reiser
  0 siblings, 1 reply; 10+ messages in thread
From: Nikita Danilov @ 2004-02-27 17:18 UTC (permalink / raw)
  To: markw; +Cc: reiser, piggin, reiserfs-list, linux-kernel

markw@osdl.org writes:
 > 
 > Yes, PostgreSQL uses fsync for its database logging.  I can certainly
 > enable the capture on copy option.  

Please don't, it is not stable enough yet.

 >                                     Does that produce something that I
 > need to manually capture?
 > 
 > Mark

Nikita.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27 16:56   ` markw
@ 2004-02-27 18:25     ` Nikita Danilov
  2004-03-02 17:07       ` markw
  0 siblings, 1 reply; 10+ messages in thread
From: Nikita Danilov @ 2004-02-27 18:25 UTC (permalink / raw)
  To: markw; +Cc: piggin, reiserfs-list, linux-kernel

markw@osdl.org writes:
 > On 26 Feb, Nikita Danilov wrote:
 > > markw@osdl.org writes:
 > >  > Hi Nick,
 > >  > 
 > >  > I started getting some results with dbt-2 on 2.6.3 and saw that reiser4
 > >  > is doing a bit worse with the AS elevator.  Although reiser4 wasn't
 > >  > doing well to begin with, compared to the other filesystems.  I have
 > >  > links to the STP results on our 4-ways and 8-ways here:
 > >  > 	http://developer.osdl.org/markw/fs/dbt2_stp_results.html
 > > 
 > > There were no changes between 2.6.2 and 2.6.3 that could affect reiser4
 > > performance, so it is not clear why numbers are so different. Probably
 > > results should be averaged over several runs. Also can you run test with
 > > 
 > > http://www.namesys.com/snapshots/2004.02.25/extra/e_05-proc-sleep.patch
 > > 
 > > applied? To use it turn CONFIG_PROC_SLEEP on (depends on
 > > CONFIG_FRAME_POINTER), and do "cat /proc/sleep" before and after test
 > > run.
 > 
 > http://khack.osdl.org/stp/288905/results/
 > 
 > There are a set of /proc/sleep files there from a 4-way system.

fsync indeed accounts for a significant fraction of the time. Below are
excerpts from /proc/sleep output. Each stack trace is preceded by three
numbers: number of times schedule() was called in this path, total time
(in microseconds) of sleep for this path, and maximal time of sleep:

157033 310799027 68714
	0 0xc011d651 schedule+0x421/0x720
	1 0xc010831b __down+0x9b/0x120
	2 0xc010858b __down_failed+0xb/0x14
	3 0xc01be5df .text.lock.flush_queue+0x5/0x16
	4 0xc01bdbd1 finish_fq+0x21/0x50
	5 0xc01bdc80 finish_all_fq+0x80/0xd0
	6 0xc01bdd03 current_atom_finish_all_fq+0x33/0x80
	7 0xc01b8536 reiser4_write_logs+0x1c6/0x300
	8 0xc01af43d commit_current_atom+0x17d/0x270
	9 0xc01affed try_commit_txnh+0xed/0x1b0
	10 0xc01b00e8 commit_txnh+0x38/0xd0
	11 0xc01ae60f txn_end+0x3f/0x50
	12 0xc01af580 force_commit_atom_nolock+0x50/0x80
	13 0xc01af76e txnmgr_force_commit_all+0x15e/0x1a0
	14 0xc01c64d6 reiser4_fsync+0x46/0x70

1497 341033905 4655702
	0 0xc011d651 schedule+0x421/0x720
	1 0xc010831b __down+0x9b/0x120
	2 0xc010858b __down_failed+0xb/0x14
	3 0xc01a8487 .text.lock.lock+0x19/0x22
	4 0xc01b18f5 capture_fuse_wait+0x1a5/0x1e0
	5 0xc01b14c2 capture_assign_txnh+0x112/0x190
	6 0xc01b02b7 try_capture_block+0x137/0x210
	7 0xc01b042c try_capture+0x6c/0xf0
	8 0xc01a7dd0 longterm_lock_znode+0x2d0/0x3e0
	9 0xc01baa70 cbk_cache_scan_slots+0x170/0x340
	10 0xc01bac7b cbk_cache_search+0x3b/0x60
	11 0xc01b9b34 coord_by_handle+0x14/0x30
	12 0xc01b9af3 object_lookup+0x93/0xc0
	13 0xc01ee925 find_file_item+0x125/0x1d0
	14 0xc01f09f4 append_and_or_overwrite+0xf4/0x3c0
	15 0xc01f0d39 write_flow+0x79/0x80
	16 0xc01f101e write_file+0x6e/0xa0
	17 0xc01f118e write_unix_file+0x13e/0x230
	18 0xc01c635b reiser4_write+0x6b/0xc0
	19 0xc0161b5f vfs_write+0xaf/0x120

1264 343750692 4655702
	0 0xc011d651 schedule+0x421/0x720
	1 0xc010831b __down+0x9b/0x120
	2 0xc010858b __down_failed+0xb/0x14
	3 0xc01a8487 .text.lock.lock+0x19/0x22
	4 0xc01b18f5 capture_fuse_wait+0x1a5/0x1e0
	5 0xc01b14c2 capture_assign_txnh+0x112/0x190
	6 0xc01b02b7 try_capture_block+0x137/0x210
	7 0xc01b042c try_capture+0x6c/0xf0
	8 0xc01a7a0d longterm_lock_tryfast+0x8d/0x180
	9 0xc01a7ec0 longterm_lock_znode+0x3c0/0x3e0
	10 0xc01baa70 cbk_cache_scan_slots+0x170/0x340
	11 0xc01bac7b cbk_cache_search+0x3b/0x60
	12 0xc01b9b34 coord_by_handle+0x14/0x30
	13 0xc01b9af3 object_lookup+0x93/0xc0
	14 0xc01ee925 find_file_item+0x125/0x1d0
	15 0xc01f0629 read_unix_file+0x2a9/0x580
	16 0xc01c62ab reiser4_read+0x6b/0xb0

208578 728986555 265426
	0 0xc011d651 schedule+0x421/0x720
	1 0xc010831b __down+0x9b/0x120
	2 0xc010858b __down_failed+0xb/0x14
	3 0xc01a8487 .text.lock.lock+0x19/0x22
	4 0xc01a7ce1 longterm_lock_znode+0x1e1/0x3e0
	5 0xc01ba4cb cbk_level_lookup+0x7b/0x300
	6 0xc01ba2b4 traverse_tree+0x104/0x2a0
	7 0xc01b9af3 object_lookup+0x93/0xc0
	8 0xc01ee925 find_file_item+0x125/0x1d0
	9 0xc01f09f4 append_and_or_overwrite+0xf4/0x3c0
	10 0xc01f0d39 write_flow+0x79/0x80
	11 0xc01f101e write_file+0x6e/0xa0
	12 0xc01f118e write_unix_file+0x13e/0x230
	13 0xc01c635b reiser4_write+0x6b/0xc0

271390 16275938018 12639906
	0 0xc011d651 schedule+0x421/0x720
	1 0xc010831b __down+0x9b/0x120
	2 0xc010858b __down_failed+0xb/0x14
	3 0xc01f2026 .text.lock.file+0x19/0x43
	4 0xc01c635b reiser4_write+0x6b/0xc0

1714303 9013881956 329456
	0 0xc011d651 schedule+0x421/0x720
	1 0xc011ecc8 io_schedule+0x28/0x40
	2 0xc0141120 __lock_page+0xb0/0xe0
	3 0xc0142997 read_cache_page+0x187/0x250
	4 0xc01e1ed6 read_extent+0x96/0x2b0
	5 0xc01f06eb read_unix_file+0x36b/0x580
	6 0xc01c62ab reiser4_read+0x6b/0xb0

First three traces can be attributed to the liberal use of fsync that
incurs frequent transaction commits.

The rest is not that clear. Probably you workload results in highly
fragmented file(s). This is consistent with high CPU consumption by
lookup_extent (http://khack.osdl.org/stp/288741/profile/profile-tick.sort).

If test doesn't delete its working files before exiting, can you execute

measurefs.reiser4 -T /device-with-reiser4
measurefs.reiser4 -D /device-with-reiser4

and, if number of files on the file system is sane

measurefs.reiser4 -D -E /device-with-reiser4

?

 > 
 > Mark

Nikita.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27 17:18       ` Nikita Danilov
@ 2004-02-27 18:57         ` Hans Reiser
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Reiser @ 2004-02-27 18:57 UTC (permalink / raw)
  To: Nikita Danilov; +Cc: markw, piggin, reiserfs-list, linux-kernel

Nikita Danilov wrote:

>markw@osdl.org writes:
> > 
> > Yes, PostgreSQL uses fsync for its database logging.  I can certainly
> > enable the capture on copy option.  
>
>Please don't, it is not stable enough yet.
>  
>
It will be stable enough when we release on Monday though, yes?

> >                                     Does that produce something that I
> > need to manually capture?
> > 
> > Mark
>
>Nikita.
>
>
>  
>


-- 
Hans



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: AS performance with reiser4 on 2.6.3
  2004-02-27 18:25     ` Nikita Danilov
@ 2004-03-02 17:07       ` markw
  0 siblings, 0 replies; 10+ messages in thread
From: markw @ 2004-03-02 17:07 UTC (permalink / raw)
  To: Nikita; +Cc: piggin, reiserfs-list, linux-kernel

On 27 Feb, Nikita Danilov wrote:
> The rest is not that clear. Probably you workload results in highly
> fragmented file(s). This is consistent with high CPU consumption by
> lookup_extent (http://khack.osdl.org/stp/288741/profile/profile-tick.sort).
> 
> If test doesn't delete its working files before exiting, can you execute
> 
> measurefs.reiser4 -T /device-with-reiser4
> measurefs.reiser4 -D /device-with-reiser4
> 
> and, if number of files on the file system is sane
> 
> measurefs.reiser4 -D -E /device-with-reiser4

Sorry this took a couple of days, but you can view the output of those
commands towards the end of the log file here:
	http://khack.osdl.org/stp/289045/logs/run-log.txt

You should be able to find the output by searching for the 'measurefs'
commands.

Mark

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-03-02 17:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26 17:48 AS performance with reiser4 on 2.6.3 markw
2004-02-26 18:02 ` Nikita Danilov
2004-02-27  3:37   ` Hans Reiser
2004-02-27 10:43     ` Dr. Giovanni A. Orlando
2004-02-27 17:03     ` markw
2004-02-27 17:18       ` Nikita Danilov
2004-02-27 18:57         ` Hans Reiser
2004-02-27 16:56   ` markw
2004-02-27 18:25     ` Nikita Danilov
2004-03-02 17:07       ` markw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox