News for hackers. Stuff that matters.
Re:Something is deeply broken in OS X memory management by eklitzke on Monday April 23, 2012 @02:58PM (#3880377)
Hard drives can read read data sequentially very, very quickly. On whatever generic SATA hard drive I have in my workstation, I get:

  eklitzke@gnut:~ $ time sudo head -c 1073741824 /dev/sda > /dev/null
  
  real	0m8.267s
  user	0m0.220s
  sys	0m0.810s
So I can read 1G off the drive in about 8 seconds.

Even if the login command does need to sequentially read through logs to find the last login time (and I'm skeptical of that, because that would be a stupid way to implement login), I don't see how that would explain multiple seconds of waiting.

Re:Something is deeply broken in OS X memory management by dsl on Monday April 23, 2012 @04:10PM (#3880705)
Log files are not stored sequentially on disk because they are constantly being appended to.

http://en.wikipedia.org/wiki/File_system_fragmentation

Re:Something is deeply broken in OS X memory management by technolem on Monday April 23, 2012 @03:06PM (#3880416)
Is it possible that power-saver is spinning down the hard-disk?