home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 3,186 of 4,255   
   mutazilah@gmail.com to wolfgang kern   
   Re: sector size   
   24 Apr 22 06:22:46   
   
   From: muta...@gmail.com   
      
   On Sunday, April 24, 2022 at 9:59:07 PM UTC+10, wolfgang kern wrote:   
      
   > It's recommended to write files starting at 4K bounds,   
   > that is ie: LBA 0,8,16,24 and so on to avoid additional   
   > cache reads and head moves, so fit HD-internal bounds.   
   > Misaligned read/write may cost one full disk revolution,   
   > that's usually 1/7200 Sec, means many thousand CPU cycles.   
      
   I see, thanks.   
      
   > > If I have a buffer that is 512 bytes in size, and I do a BIOS   
   > > call to read LBA sector 2:   
      
   > > 1. Will the first 8192 bytes of the disk be skipped, because   
   > > that is occupied by LBA 0 and LBA 1?   
      
   > No, if it's a 4k HD then its internal cache will be loaded with   
   > LBA 0..7 but the I/O-port is only fed with 512 bytes from LBA2.   
      
   Wow. In that case, I won't bother supporting sector   
   sizes other than 512 for now. There are other priorities.   
      
   BFN. Paul.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca