Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: Is KQueue s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 10 Topic 935 of 1040
Post > Topic >>

Re: Is KQueue still broken on Darwin?

by Michael Ash <mike@[EMAIL PROTECTED] > Apr 16, 2007 at 05:31 PM

Gregory Weston <uce@[EMAIL PROTECTED]
> wrote:
> In article <m27iscyqon.fsf@[EMAIL PROTECTED]
>,
> Sherm Pendley <spamtrap@[EMAIL PROTECTED]
> wrote:
> 
>> SM Ryan <wyrmwif@[EMAIL PROTECTED]
> writes:
>> 
>> > I have a program that gets in an uninterruptible wait for
>> > hours and days. I'm using sockets and kqueue. I have never
>> > had problems with sockets before, but kqueue used to crash
>> > the kernel. Does anyone know if kqueue still borks the machine?
>> 
>> Never heard about it cra****ng the kernel before, but kqueue received a
>> substantial overhaul in Tiger. Spotlight uses it to index updated
files,
>> Finder to update its display immediately, etc.
> 
> I know about Finder, but do you have any reference for Spotlight using 
> kqueue? That seems really wrong and/or fragile.

It is wrong. Spotlight uses fsevent, a private API which is presumably 
related to kqueue in some fa****on. Kqueue simply wouldn't work for 
spotlight since it doesn't allow monitoring entire trees of a filesystem 
without opening a file descriptor on every directory within, which is 
impractical when doing the entire hard drive.

For more details on what Spotlight is doing, see this page:

http://www.kernelthread.com/software/fslogger/

-- 
Michael Ash
Rogue Amoeba Software
 




 10 Posts in Topic:
Is KQueue still broken on Darwin?
SM Ryan <wyrmwif@[EMAI  2007-04-16 16:04:33 
Re: Is KQueue still broken on Darwin?
Gregory Weston <uce@[E  2007-04-16 14:34:49 
Re: Is KQueue still broken on Darwin?
SM Ryan <wyrmwif@[EMAI  2007-04-16 19:06:06 
Re: Is KQueue still broken on Darwin?
Gregory Weston <uce@[E  2007-04-16 18:20:04 
Re: Is KQueue still broken on Darwin?
SM Ryan <wyrmwif@[EMAI  2007-04-17 00:05:35 
Re: Is KQueue still broken on Darwin?
Gregory Weston <uce@[E  2007-04-16 22:02:39 
Re: Is KQueue still broken on Darwin?
Sherm Pendley <spamtra  2007-04-16 17:06:48 
Re: Is KQueue still broken on Darwin?
Gregory Weston <uce@[E  2007-04-16 18:12:26 
Re: Is KQueue still broken on Darwin?
Michael Ash <mike@[EMA  2007-04-16 17:31:50 
Re: Is KQueue still broken on Darwin?
Sherm Pendley <spamtra  2007-04-16 18:45:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 7:25:23 CST 2008.