Re: ko/s, time to format a cdrw

Le Gluon du Net <[email protected]> Sat, 01 Oct 2005 01:43:41 +0200
Newsgroups gmane.linux.suse.packet-writing
Message-ID <[email protected]>
Johnny Casey a écrit :

>
>
>Are you running Knoppix from the CD?
>What drive is Knoppix using, if so?
>  
>
No, I'm not running my Knoppix from a cd. I installed it more than one 
year ago. With the lot of updates, it's now more a debian testing/unstable.

>If Knoppix is running from CD and is at /dev/hdd, then you might just
>see the 3KB/s speed you are getting.  The same might be true if you have
>a hard disk (with the files on it) at /dev/hda and knoppix at /dev/hdb.
>  
>
not at all. My installation is a normal installation, not a livecd...

> The reason would be that the two drives would be in contention for the
>IDE bus (/dev/hda and /dev/hdb on one bus and /dev/hdc and /dev/hdd on
>another, etc. (Most computers come standard with 2 buses, but more can
>be added with add-on cards)). 
>
I have two hard disks on the firt bus, and two dvd on the other.

> On top of that, Knoppix (or any LiveCD
>system) can put a lot of strain on a system.  Memory helps there.  How
>much swap/RAM do you have available?
>  
>
I have no swap but 1giga ram.

>If the above is not the case, from where are the files being copied? (A
>serial line ;)
>  
>
lol

>
>Also, what connects your drives in your the computer?  (The motherboard?
> A dinky, ancient ISA multi I/O card?  A sound card?  A PCI card?  A mix?)
>  
>
the motherboard

>$ time dd if=/dev/zero of=/dev/null bs=4k count=128000
>128000+0 records in
>128000+0 records out
>524288000 bytes transferred in 0.100023 seconds (5241670563 bytes/sec)
>
>real    0m0.115s
>user    0m0.016s
>sys     0m0.072s
>
>  
>

Good, this is my results:

# time dd if=/dev/zero of=/dev/null bs=4k count=128000
128000+0 enregistrements lus.
128000+0 enregistrements écrits.
524288000 bytes transferred in 0,260783 seconds (2010438538 bytes/sec)

real    0m0.262s
user    0m0.060s
sys     0m0.192s

grrr....

# time dd if=/dev/zero of=/dev/pktcdvd/0 bs=4K count=128000
128000+0 enregistrements lus.
128000+0 enregistrements écrits.
524288000 bytes transferred in 243,342430 seconds (2154528 bytes/sec)

real    4m3.344s
user    0m0.092s
sys     0m1.376s

It looks like ok doctor?

to quick format a 700 mega cdrw (12x) I obtain this:

time cdrwtool -t12 -q -d /dev/hdc
setting speed to 12
using device /dev/hdc
1312KB internal buffer
setting write speed to 12x
Settings for /dev/hdc:
        Fixed packets, size 32
        Mode-2 disc

I'm going to do a quick setup of /dev/hdc. The disc is going to be 
blanked and formatted with one big track. All data on the device will be 
lost!! Press CTRL-C to cancel now.
ENTER to continue.

Initiating quick disc blank
Disc capacity is 295264 blocks (590528KB/576MB)
Formatting track
start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=31, type=USPACE
start=288, blocks=32, type=PVDS
start=320, blocks=32, type=LVID
start=352, blocks=32, type=STABLE
start=384, blocks=1024, type=SSPACE
start=1408, blocks=293568, type=PSPACE
start=294976, blocks=31, type=USPACE
start=295007, blocks=1, type=ANCHOR
start=295008, blocks=160, type=USPACE
start=295168, blocks=32, type=STABLE
start=295200, blocks=32, type=RVDS
start=295232, blocks=31, type=USPACE
start=295263, blocks=1, type=ANCHOR
Writing UDF structures to disc
Quick setup complete!

real    9m0.816s
user    0m0.000s
sys     0m0.008s

It looks good!?

>What does hdparm show? 
>
ok, run as root:

/dev/hdc:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument

# hdparm /dev/hda1 (/) (hd1)

/dev/hda1:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 40965687, start = 63

# hdparm /dev/hda2 (hd1)

/dev/hda2:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 200282355, start = 40965750

# hdparm /dev/hdb1 (hd2)

/dev/hdb1:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 19929/255/63, sectors = 320159322, start = 63

# hdparm /dev/hdd (dvd reader)

/dev/hdd:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument


>
>$ ls -ltr /var/log
>  
>

in /var/log/syslog I have some strange messages:
Sep 30 23:58:40 MyLittleLinuxBox kernel: pktcdvd: Unknown ioctl for 
pktcdvd0 (5331)
or
Oct  1 00:43:20 MyLittleLinuxBox kernel: udf: udf_count_free failed

and in fstab I mount with this line:

/dev/pktcdvd/0 /mnt/cdudf auto  
sync,noauto,noatime,rw,users,iocharset=iso8859-15    0 0

>and is syslogd (and klogd) running?

yes, this two process are running

Thanks again for your help Johnny.

Romain.