Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

I wonder , what will happen

tarek.boxtarek.box Member
edited September 2015 in Help

I wonder ,

what will happen if i put this code

dd if=/dev/zero of=/dev/null bs=10G count=1 oflag=direct

in shell script pool if OPENVZ or KVM any one knows ?

Comments

  • You will send spam to 100k random email addresses.

    Thanked by 1yomero
  • I call 911 with that code, works every time.

  • linuxthefishlinuxthefish Member
    edited September 2015

    You can't use oflag=direct with /dev/null

    Without it seems to work fine, here is for OpenVZ

    [root@s /]# dd if=/dev/zero of=/dev/null bs=10G count=1
    0+1 records in
    0+1 records out
    2147479552 bytes (2.1 GB) copied, 0.616502 s, 3.5 GB/s
    [root@s /]# dd if=/dev/zero of=/dev/null bs=1G count=10
    10+0 records in
    10+0 records out
    10737418240 bytes (11 GB) copied, 1.37971 s, 7.8 GB/s

  • perennateperennate Member, Host Rep

    Wow, what provider are you using?? That disk I/O is so high!

    Thanked by 3linuxthefish yomero jar
  • @linuxthefish

    from where you buy your server ?

  • @tarek4web said:
    linuxthefish

    from where you buy your server ?

    It's not the real disk I/O, I think this uses CPU more than anything!

    Thanked by 2tarek.box ucxo
  • @linuxthefish

    I have a curiosity to know from where you bought it ?

  • NomadNomad Member
    edited September 2015

    @linuxthefish said:
    It's not the real disk I/O, I think this uses CPU more than anything!

    [11:31] root@loki: /home/nomad # dd if=/dev/zero of=/dev/null bs=10G count=1
    0+1 records in
    0+1 records out
    2147479552 bytes (2.1 GB) copied, 0.54953 s, 3.9 GB/s
    [11:42] root@loki: /home/nomad # dd if=/dev/zero of=/dev/null bs=1G count=10
    10+0 records in
    10+0 records out
    10737418240 bytes (11 GB) copied, 1.37481 s, 7.8 GB/s
    

    Not much of a difference with a 1220v2

Sign In or Register to comment.