Skip to contentSkip to conversation

OSDL DBT-2 AS vs. Deadline 2.5.68-mm2

DISCUSSION [email protected] 7 participants 12 messages May 7, 2003 – May 8, 2003

lore
Share & tools
lore
#0 lore raw

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012
 7 do_softirq                  21122 do_softirq                  24623
 8 scsi_end_request            14080 system_call                 13056
 9 system_call                 12059 try_to_wake_up              12503
10 try_to_wake_up              11240 dio_bio_end_io              11511
Signature · 6 lines
Mark Wong - - [email protected]
Open Source Development Lab Inc - A non-profit corporation
15275 SW Koll Parkway - Suite H - Beaverton OR, 97006
(503)-626-2455 x 32 (office)
(503)-626-2436      (fax)
http://www.osdl.org/archive/markw/
#1 lore raw
Quoted 14 lines · On Wed, May 07, 2003 at 09:33:29AM -0700, [email protected] wrote:

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012
 7 do_softirq                  21122 do_softirq                  24623
 8 scsi_end_request            14080 system_call                 13056
 9 system_call                 12059 try_to_wake_up              12503
10 try_to_wake_up              11240 dio_bio_end_io              11511

You're already in deeper trouble than elevators can get you out of as your driver is using bounce buffers. What hardware/driver are you using?

-- wli

#2 lore raw
In reply to [email protected]
Quoted 15 lines · On Wed, May 07 2003, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

Quoted 8 lines
 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012

uhh nasty, you are spending a lot of time bouncing. How much RAM is in the machine, and what is the scsi hba?

Signature · 1 line
Jens Axboe
#3 lore raw
Quoted 25 lines · Jens Axboe
Quoted 15 lines · On Wed, May 07 2003, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

Quoted 8 lines
 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012
Quoted 2 lines

uhh nasty, you are spending a lot of time bouncing. How much RAM is in the machine, and what is the scsi hba?

The system has 4GB of memory and has a DECchip 21554 (aacraid) that the external drives are connected to. Mark Haverkamp is currently trying to address those bounce buffers.

#4 lore raw
Quoted 26 lines · On Wed, May 07 2003, [email protected] wrote:
Quoted 25 lines · Jens Axboe
Quoted 23 lines · On Wed, May 07 2003, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012
Quoted 6 lines
Quoted 2 lines

uhh nasty, you are spending a lot of time bouncing. How much RAM is in the machine, and what is the scsi hba?

The system has 4GB of memory and has a DECchip 21554 (aacraid) that the external drives are connected to. Mark Haverkamp is currently trying to address those bounce buffers.

aacraid actually looks sane enough. so you should just be able to set host->highmem_io and it should work.

Signature · 1 line
Jens Axboe
#5 lore raw
Quoted 30 lines · Jens Axboe
Quoted 29 lines · On Wed, May 07 2003, [email protected] wrote:
Quoted 27 lines · Jens Axboe
Quoted 15 lines · On Wed, May 07 2003, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

Quoted 8 lines
 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012

uhh nasty, you are spending a lot of time bouncing. How much RAM is in the machine, and what is the scsi hba?

Quoted 6 lines
Quoted 3 lines

The system has 4GB of memory and has a DECchip 21554 (aacraid) that the external drives are connected to. Mark Haverkamp is currently trying to address those bounce buffers.

aacraid actually looks sane enough. so you should just be able to set host->highmem_io and it should work.

That is what I thought, but I wanted to get a machine with lots of memory to try it out on.

Mark.

Signature · 1 line
Mark Haverkamp <[email protected]>
#6 lore raw
Quoted 2 lines · Mark Haverkamp

That is what I thought, but I wanted to get a machine with lots of memory to try it out on.

if(aac->pae_support)

	pci_set_dma_mask(dev, 0xFFFFFFFFFFFFFFFFUL);

This probably wants 0xFFFFFFFFFFFFFFFFULL and checking pci_set_dma_mask() return value.

Signature · 1 line
function.linuxpower.ca
#7 lore raw
In reply to [email protected]
Quoted 15 lines · On Wed, 2003-05-07 at 18:33, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

Quoted 8 lines
 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012

You are using scsi, what tcq depth are you using? AS doesn't like >4 or something like that.

Signature · 1 line
/Martin
#8 lore raw
Quoted 25 lines · Martin Josefsson
Quoted 15 lines · On Wed, 2003-05-07 at 18:33, [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

METRICS OVER LAST 20 MINUTES:
--------------- -------- ----- ---- -------- -----------------------------------
Kernel Elevator NOTPM CPU% Blocks/s URL
--------------- -------- ----- ---- -------- -----------------------------------

2.5.68-mm2      as        1155 94.3   8940.2 http://khack.osdl.org/stp/271356/  
2.5.68-mm2      deadline  1255 94.9   9598.7 http://khack.osdl.org/stp/271359/  

FUNCTIONS SORTED BY TICKS:
-- ------------------------- ------- ------------------------- -------

Quoted 8 lines
 # as 2.5.68-mm2             ticks   deadline 2.5.68-mm2       ticks  
-- ------------------------- ------- ------------------------- -------
 1 default_idle              6103428 default_idle              5359025
 2 bounce_copy_vec             86272 bounce_copy_vec             97696
 3 schedule                    63819 schedule                    70114
 4 __make_request              30397 __blk_queue_bounce          31167
 5 __blk_queue_bounce          26962 scsi_request_fn             26623
 6 scsi_request_fn             24845 __make_request              25012
Quoted 2 lines

You are using scsi, what tcq depth are you using? AS doesn't like >4 or something like that.

I'm told that it's set to 128 with this bit of code:

        if(dev->tagged_supported)
                scsi_adjust_queue_depth(dev, MSG_ORDERED_TAG, 128);
#9 lore raw
In reply to [email protected]
Quoted 5 lines · [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

Thanks. It looks like AS isn't doing too badly here. Newer mm kernels have some more AS changes, and the dynamic struct request patch which would be good to test.

Are you using TCQ on your disks?

#10 lore raw
Quoted 7 lines · Nick Piggin
Quoted 5 lines · [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

Quoted 6 lines

Thanks. It looks like AS isn't doing too badly here. Newer mm kernels have some more AS changes, and the dynamic struct request patch which would be good to test.

Are you using TCQ on your disks?

There's a queue depth being set. Is that a good indicator that TCQ is being used? If not, I'd be happy to verify it.

Mark

#11 lore raw
Quoted 12 lines · On Thu, May 08 2003, [email protected] wrote:
Quoted 11 lines · Nick Piggin
Quoted 5 lines · [email protected] wrote:

I've collected some data from STP to see if it's useful or if there's anything else that would be useful to collect. I've got some tests queued up for the newer patches, but I wanted to put out what I had so far.

Thanks. It looks like AS isn't doing too badly here. Newer mm kernels have some more AS changes, and the dynamic struct request patch which would be good to test.

Quoted 5 lines
Quoted 2 lines

Are you using TCQ on your disks?

There's a queue depth being set. Is that a good indicator that TCQ is being used? If not, I'd be happy to verify it.

The queue depth being set, is the highest queueing depth that the scsi mid layer will throw at you. The actual TCQ depth may be lower, depends on the hardware. aacraid, iirc, has a pretty big depth so I woudldn't be surprised if it could use all of those 128 tags.

It would be interesting to see a forced depth of 2 with AS against the stock case of 128 (and deadline).

Signature · 1 line
Jens Axboe