Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-20-2006, 10:26 PM
|
#1
|
Member
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444
Rep:
|
What is blocksize?
Pretty simple question. I see people using this with dd all the time. What difference does it make when you use a block size of say 1M in comparison to 512? Thanks.
|
|
|
04-21-2006, 01:14 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
Quote:
Originally Posted by binarybob0001
What difference does it make when you use a block size of say 1M in comparison to 512? Thanks.
|
Obviously dd will copy the data in larger chunks per read and write operation. This means fewer calls to read(2) and write(2), so fewer context switches. If this is the only effect, you should expect a (very slight) speedup.
However, there is probably some gain I don't know about by copying in block sizes that match those of the hardware and/or file system.
Finally, it may be affected by local variance, cosmic rays and ISO standards. So, go measure it for yourself.
hth --Jonas
|
|
|
04-21-2006, 07:06 AM
|
#3
|
Member
Registered: Jan 2006
Location: India
Distribution: fedora core 5
Posts: 42
Rep:
|
not really related to the forum topic jonaskoelker. But would you please tell me where you found the Microsofts guilty things you mentioned in your signature?
|
|
|
04-21-2006, 03:29 PM
|
#4
|
Member
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444
Original Poster
Rep:
|
OK, I will test them, but first I need to figure out how to find the blocksize of my hardware. I will need to know the blocksize of my hardware though. How do I find that out?
|
|
|
04-21-2006, 06:29 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
Quote:
Originally Posted by binarybob0001
I will need to know the blocksize of my hardware though. How do I find that out?
|
Don't know, but 512 bytes is a pretty sound guess.
OT: I can't recall where I find out that microsoft was indeed found guilty of anti-trust violations, but I'm sure that your favorite search engine is a good place to start.
|
|
|
04-21-2006, 06:59 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
Quote:
Originally Posted by binarybob0001
OK, I will test them, but first I need to figure out how to find the blocksize of my hardware. I will need to know the blocksize of my hardware though. How do I find that out?
|
I don't think blocksize is a property of hardware. For example, if you are using dd to put thing on a hard disk, you can use just about any block size you want. Probably the same answer for a floppy or a usb memory stick.
Obviously, using a block size larger than the capacity of the target device would not make sense......
|
|
|
04-21-2006, 07:27 PM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524
Rep:
|
pixellany: you're not wrong, but you're not completely right either. Basically, the word `block' menas something to dd, and something different to the disk, and something completely third to the file system.
As I alluded to, making the size of a dd block be the size of a disk block and/or fs block may have advantages.
|
|
|
All times are GMT -5. The time now is 12:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|