打印

[SUN]sun的机器怎么这么慢?正常吗?有环境的请作一下试验啊!

[SUN]sun的机器怎么这么慢?正常吗?有环境的请作一下试验啊!

Server是Sun fire v880,73G*6的HD,16GB内存,
虽然是FC光纤硬盘,但我感觉IO的速度慢,就作了个
试验,建两个裸设备,129M,然后用dd拷贝,竟然用了30多分钟
这正常吗?
下面是报告:

# dd if=/dev/rdsk/c1t5d0s0 of=/dev/rdsk/c1t5d0s1
dd命令执行时间是30分钟

下面是我的partition表
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c506eb861,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c5066b76c,0
       2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c506eb40c,0
       3. c1t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c506b588a,0
       4. c1t4d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c506b82d9,0
       5. c1t5d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100000c506eb095,0
Specify disk (enter its number): 5
selecting c1t5d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    25      129.19MB    (26/0/0)       264576
  1       swap    wu      26 -    51      129.19MB    (26/0/0)       264576
  2     backup    wu       0 - 14086       68.35GB    (14087/0/0) 143349312
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm      52 - 14086       68.10GB    (14035/0/0) 142820160
  7 unassigned    wm       0                0         (0/0/0)             0

partition>

TOP

I think this seems no problem...

If you still doubt about this, use iostat to check this:

iostat -xn 2 |grep c1t5d0

Why this cause about half an hour? Oh....Another parameter related to dd is 'blocksize'. you can increase your dd's blocksize like this:

dd if=/dev/rdsk/c1t5d0s0 of=/dev/rdsk/c1t5d0s1 blocksize=100m

defaultly its blocksize is set to 64k. Commonly I'd like to set it to 100m.
Email: [IMG]http://www.nhacks.com/email/image/UmF5cy5LYWk%3D/R01haWw%3D/image.png[/IMG] MSN: [IMG]http://www.nhacks.com/email/image/b21pdF9wYXN0/SG90bWFpbA%3D%3D/image.png[/IMG]

TOP

yeah, change the blocksize will make a huge difference
※※※※※※※※※※※※※※※在UNIX版发贴必读!否则关帖※※※※※※※※※※※※※※※ http://www.itpub.net/showthread.php?s=&threadid=38248

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-9-5 19:30 京ICP证060528 号

Designed By 17DST