LWN.net Logo

The 3.8 kernel is out

The 3.8 kernel is out

Posted Feb 20, 2013 8:25 UTC (Wed) by Otus (guest, #67685)
In reply to: The 3.8 kernel is out by Aliasundercover
Parent article: The 3.8 kernel is out

> Few programs would get anything out of early access to the first few bytes of a longer file.

How about programs that need to find the file format and look for an initial magic number?


(Log in to post comments)

The 3.8 kernel is out

Posted Feb 20, 2013 13:20 UTC (Wed) by Wol (guest, #4433) [Link]

Then when they've found out what the magic number is, and invoked the correct program, that program is going to try and read the entire first block and get a cache hit, rather than having to wait for spinning rust.

Cheers,
Wol

The 3.8 kernel is out

Posted Feb 20, 2013 14:37 UTC (Wed) by ssam (subscriber, #46587) [Link]

Some sort of read ahead could be fetching the first block while the program initializes.

Also you may just be reading the first few bytes to know what icon to draw in your file browser.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds