Quantcast

disk is fast when using bsd.rd, but very slow using bsd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

disk is fast when using bsd.rd, but very slow using bsd

Hwang, Wey
my diskinfo:
===========>>
# disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: ST3000VX000
duid: 4bfdcccaf580815f
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 364801
total sectors: 5860533168
boundstart: 64
boundend: 5860533168
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       5860533104               64    RAID
  c:       5860533168                0  unused
# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: ST3000VX000
duid: 4ac9f72ad102a84a
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 364801
total sectors: 5860533168
boundstart: 64
boundend: 5860533168
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       5860533104               64    RAID
  c:       5860533168                0  unused
# disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: ST3000VX000
duid: 3b6e66c0369f7b25
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 364801
total sectors: 5860533168
boundstart: 64
boundend: 5860533168
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:       5860533104               64    RAID
  c:       5860533168                0  unused
# disklabel sd3
# /dev/rsd3c:
type: SCSI
disk: SCSI disk
label: SR RAID 1
duid: e118fc1d2733b340
flags:
bytes/sector: 512
sectors/track: 255
tracks/cylinder: 511
sectors/cylinder: 130305
cylinders: 44975
total sectors: 5860532576
boundstart: 256
boundend: 5860532576
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:          4299808              256  4.2BSD   2048 16384 12958
  b:        134344456          4300064    swap
  c:       5860532576                0  unused
  d:          4300032        138644544  4.2BSD   2048 16384 12958
  e:          4169760        142944576  4.2BSD   2048 16384 12958
  f:         33488384        147114336  4.2BSD   2048 16384 12958
  g:        268428288        180602720  4.2BSD   2048 16384 12958
  h:          8339520        449031008  4.2BSD   2048 16384 12958
  i:          8339520        457370528  4.2BSD   2048 16384 12958
  j:        536856576        465710080  4.2BSD   4096 32768 26062
# bioctl softraid0
Volume      Status               Size Device
softraid0 0 Online      3000592678912 sd3     RAID1
          0 Online      3000592678912 0:0.0   noencl <sd0a>
          1 Online      3000592678912 0:1.0   noencl <sd2a>
          2 Online      3000592678912 0:2.0   noencl <sd1a>
# mount
/dev/sd3a on / type ffs (local, noatime, softdep)
/dev/sd3e on /home type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd3h on /tmp type ffs (local, noatime, nodev, nosuid, softdep)
/dev/sd3f on /usr type ffs (local, noatime, nodev, wxallowed, softdep)
/dev/sd3i on /var type ffs (local, noatime, nodev, nosuid, softdep)
#
<<===========

disk speed using bsd.rd:
===========>>
# dd if=/dev/zero of=/tmp/512m.0 bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 3.492 secs (153734033 bytes/sec)
# dd if=/dev/rsd0a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 2.851 secs (188292381 bytes/sec)
# dd if=/dev/rsd1a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 3.342 secs (160619570 bytes/sec)
# dd if=/dev/rsd2a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 3.278 secs (163751847 bytes/sec)
# dd if=/dev/rsd3a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 3.748 secs (143217822 bytes/sec)
<<===========

diskspeed using bsd:
===========>>
# dd if=/dev/zero of=/tmp/512m.1 bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 34.135 secs (15727481 bytes/sec)
# dd if=/dev/rsd0a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 20.321 secs (26418709 bytes/sec)
# dd if=/dev/rsd1a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 20.803 secs (25807034 bytes/sec)
# dd if=/dev/rsd2a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 20.675 secs (25966138 bytes/sec)
# dd if=/dev/rsd3a of=/dev/null bs=1m count=512
512+0 records in
512+0 records out
536870912 bytes transferred in 20.984 secs (25584571 bytes/sec)
<<===========

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: disk is fast when using bsd.rd, but very slow using bsd

Solène Rapenne-2
Le 2017-05-10 00:56, Hwang, Wey a écrit :
> # mount
> /dev/sd3a on / type ffs (local, noatime, softdep)
> /dev/sd3e on /home type ffs (local, noatime, nodev, nosuid, softdep)
> /dev/sd3h on /tmp type ffs (local, noatime, nodev, nosuid, softdep)
> /dev/sd3f on /usr type ffs (local, noatime, nodev, wxallowed, softdep)
> /dev/sd3i on /var type ffs (local, noatime, nodev, nosuid, softdep)
> #

When using bsd.rd your folder /tmp is your RAM so it's faster

Loading...