Why is “/dev/rdisk” about 20 times faster than “/dev/disk” in Mac OS X

spuder

According to the rasbery pi documentation, You can load your OS to a flash card with either /dev/disk or /dev/rdisk.

rdisk stands for raw disk.

/dev/disk is a block level device, why would rdisk be 20 times faster?

Using Mac OSX

Note: In OS X each disk may have two path references in /dev: /dev/disk# is a buffered device, which means any data being sent undergoes extra processing. /dev/rdisk# is a raw path, which is much faster, and perfectly OK when using the dd program. On a Class 4 SD card the difference was around 20 times faster using the rdisk path.

Daniël W. Crompton

From man hdiutil:

/dev/rdisk nodes are character-special devices, but are "raw" in the BSD sense and force block-aligned I/O. They are closer to the physical disk than the buffer cache. /dev/disk nodes, on the other hand, are buffered block-special devices and are used primarily by the kernel's filesystem code.

In layman's terms /dev/rdisk goes almost directly to disk and /dev/disk goes via a longer more expensive route

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why is Python regex slower 5 times on aws instance than my local mac OS X with similar specs?

From Dev

Why is Python regex slower 5 times on aws instance than my local mac OS X with similar specs?

From Java

Why is 'x' in ('x',) faster than 'x' == 'x'?

From Dev

Why is Udcast is many times faster than Netcat?

From Dev

Why @autoreleasepool is 6 times faster than NSAutoreleasePool?

From Dev

Why is `-1 * x` faster than `-x` and why?

From Dev

Why Windows download under VirtualBox is 20x faster than in native Linux?

From Dev

Why is Ubuntu more secure than Windows or Mac OS X?

From Dev

Why simple Scala tailrec loop for fibonacci calculation is faster in 3x times than Java loop?

From Java

Why is list(x for x in a) faster for a=[0] than for a=[]?

From Dev

Why is my Linux OS so much faster than my W10 OS and what can be done about the latter?

From Dev

In OS X, why does using println() cause my program to run faster than without println()

From Dev

Loops over list 20x faster than over ndarray

From Dev

Why is 6-7 threads faster than 20?

From Dev

Why is 6-7 threads faster than 20?

From Dev

Why is Matlab 11 times faster than C++

From Dev

Why is multiplied many times faster than taking the square root?

From Dev

Why is the second execution of this combinator 10 times faster than the first?

From Dev

MSSQL: Why is this index 10 times faster than the other one?

From Dev

Why is VC++ matrix times vector faster with openMP than async?

From Java

Why is x**4.0 faster than x**4 in Python 3?

From Dev

Why is x**4.0 faster than x**4 in Python 3?

From Dev

Why is OS X 10.9.2 update from Mac App Store smaller than the one from Apple website?

From Dev

Why fonts on Mac OS X look much nicer than on Windows when using the same hardware?

From Dev

Why this subquery is 10x faster than inner join

From Dev

Why is this NodeJS 2x faster than native C?

From Dev

Why this subquery is 10x faster than inner join

From Java

Why is [] faster than list()?

From Dev

Why ReferenceEquals() is faster than ==

Related Related

  1. 1

    Why is Python regex slower 5 times on aws instance than my local mac OS X with similar specs?

  2. 2

    Why is Python regex slower 5 times on aws instance than my local mac OS X with similar specs?

  3. 3

    Why is 'x' in ('x',) faster than 'x' == 'x'?

  4. 4

    Why is Udcast is many times faster than Netcat?

  5. 5

    Why @autoreleasepool is 6 times faster than NSAutoreleasePool?

  6. 6

    Why is `-1 * x` faster than `-x` and why?

  7. 7

    Why Windows download under VirtualBox is 20x faster than in native Linux?

  8. 8

    Why is Ubuntu more secure than Windows or Mac OS X?

  9. 9

    Why simple Scala tailrec loop for fibonacci calculation is faster in 3x times than Java loop?

  10. 10

    Why is list(x for x in a) faster for a=[0] than for a=[]?

  11. 11

    Why is my Linux OS so much faster than my W10 OS and what can be done about the latter?

  12. 12

    In OS X, why does using println() cause my program to run faster than without println()

  13. 13

    Loops over list 20x faster than over ndarray

  14. 14

    Why is 6-7 threads faster than 20?

  15. 15

    Why is 6-7 threads faster than 20?

  16. 16

    Why is Matlab 11 times faster than C++

  17. 17

    Why is multiplied many times faster than taking the square root?

  18. 18

    Why is the second execution of this combinator 10 times faster than the first?

  19. 19

    MSSQL: Why is this index 10 times faster than the other one?

  20. 20

    Why is VC++ matrix times vector faster with openMP than async?

  21. 21

    Why is x**4.0 faster than x**4 in Python 3?

  22. 22

    Why is x**4.0 faster than x**4 in Python 3?

  23. 23

    Why is OS X 10.9.2 update from Mac App Store smaller than the one from Apple website?

  24. 24

    Why fonts on Mac OS X look much nicer than on Windows when using the same hardware?

  25. 25

    Why this subquery is 10x faster than inner join

  26. 26

    Why is this NodeJS 2x faster than native C?

  27. 27

    Why this subquery is 10x faster than inner join

  28. 28

    Why is [] faster than list()?

  29. 29

    Why ReferenceEquals() is faster than ==

HotTag

Archive