On Mon, 2004-06-21 at 10:28 -0400, Richard Ellis wrote:

> Check your disk I/O read bandwidth.  Lav2wav is heavily read I/O
> bandwidth bound.  It sounds like your disk read bandwidth is way low
> for some reason,

That was one of the first things I checked.  This is a UDMA5 capable
drive although the IDE interface is only UDMA4 capable, so it's running
UDMA4 right now.  But hdparm's performance test looks good:

/dev/hda:
 Timing buffer-cache reads:   636 MB in  2.00 seconds = 318.00 MB/sec
 Timing buffered disk reads:  124 MB in  3.02 seconds =  41.06 MB/sec

> and therefore lav2wav is not creating PCM data very
> quickly, which means there is very little data for sox to work with. 
> Both result in very low CPU utilization.

Right.

I don't think this is the situation in this case.  The wav data file
created from a lav2wav is 317184228 bytes.  At 40MB/sec that is only
(317184228 / 1024 / 1024 / 40) 7.5 seconds.

The actual:

$ time lav2wav file.eli > file.wav
   INFO: [lav2wav] WAV done
0.58user 12.01system 1:49.86elapsed 11%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (204major+938minor)pagefaults 0swaps

It's worth noting that lav2rec does not really read/write that much data
per read() syscall.  I wonder if this is the cause.

...
read(4, "9\6\372\v:\6\340\v\272\6\343\v\234\7\314\v\217\10\246\v"..., 3676) = 3676
read(4, "M\0\275\372\241\377\371\372\367\376D\373\207\376\271\373"..., 2212) = 2212
write(1, "9\6\372\v:\6\340\v\272\6\343\v\234\7\314\v\217\10\246\v"..., 5888) = 5888
read(4, "~\376\344\372\t\376\347\372o\375\371\372\365\374\'\373"..., 1884) = 1884
read(4, "\256\373\235\375\342\372-\375y\372\272\374\213\372?\374"..., 4000) = 4000
write(1, "~\376\344\372\t\376\347\372o\375\371\372\365\374\'\373"..., 5884) = 5884
read(4, "?\7\366\7\245\7S\10\252\7\244\10\302\7\367\10\377\7N\t"..., 96) = 96
read(4, "A\n\247\0046\n\216\4-\n\235\4-\n\305\4\372\t\356\4\243"..., 4096) = 4096
read(4, "\332\16}\r\35\17\17\23>\16?\24\230\ft\16~\v\230\10\243"..., 1692) = 1692
write(1, "?\7\366\7\245\7S\10\252\7\244\10\302\7\367\10\377\7N\t"..., 5884) = 5884
read(4, "m\4\v\n\'\4G\t\364\3\204\t}\3\25\t\312\2\262\6\257\1\270"..., 2404) = 2404
read(4, "\341\3\v\f2\5\251\r\362\5r\16\f\6\341\16\246\5\317\16-"..., 3484) = 3484
write(1, "m\4\v\n\'\4G\t\364\3\204\t}\3\25\t\312\2\262\6\257\1\270"..., 5888) = 5888
read(4, "6\6\213\16K\6$\17M\6a\16a\6\326\r\"\6\366\r0\6\24\16\345"..., 612) = 612
read(4, "\201\370\315\374\326\371u\376\252\373\'\376\0\375\271\376"..., 4096) = 4096
read(4, "\35\2<\372\31\1\t\371\345\377.\367s\375#\366\t\373\234"..., 1176) = 1176
write(1, "6\6\213\16K\6$\17M\6a\16a\6\326\r\"\6\366\r0\6\24\16\345"..., 5884) = 5884
read(4, "\30\7\335\r4\7\2\16l\7a\rs\7C\f\250\6;\v\32\5\311\n\260"..., 2920) = 2920
read(4, "V\374i\375\204\375\340\376\261\376\247\375R\376\204\372"..., 2968) = 2968
write(1, "\30\7\335\r4\7\2\16l\7a\rs\7C\f\250\6;\v\32\5\311\n\260"..., 5888) = 5888
read(4, "\216\375\220\375\360\374\356\377\21\376\344\1\242\377\240"..., 1128) = 1128
read(4, "\21\2\247\3r\1T\3\r\1\253\3B\1O\3\335\1\234\1\25\2\6\0"..., 4096) = 4096
read(4, "\302\372\2\365\1\375\342\367g\376j\373h\376\"\376\337\373"..., 660) = 660
write(1, "\216\375\220\375\360\374\356\377\21\376\344\1\242\377\240"..., 5884) = 5884
read(4, "[EMAIL PROTECTED]"..., 3436) = 3436
read(4, "\177\370\317\361-\371\344\360T\372\10\362\202\373\21\363"..., 2452) = 2452
write(1, "[EMAIL PROTECTED]"..., 5888) = 5888
read(4, "\356\3704\375:\370\261\373\206\367\307\371\34\366B\367"..., 1644) = 1644
read(4, "\312\16[\364\353\16\321\371\252\16\n\376M\16\24\0\215\16"..., 4096) = 4096
read(4, "\356\373\253\365w\372\343\363}\371b\364\313\370=\363\265"..., 144) = 144
write(1, "\356\3704\375:\370\261\373\206\367\307\371\34\366B\367"..., 5884) = 5884
...

Thots?

b.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to