• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: limiting CPU usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limiting CPU usage


  • Subject: Re: limiting CPU usage
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 30 Nov 2007 12:30:52 -0800

On Nov 30, 2007 12:05 PM, Murat Konar <email@hidden> wrote:
>
> On Nov 30, 2007, at 8:36 AM, Alexander Cohen wrote:
>
> > In that case, maybe you have an idea for me. I have a daemon that
> > runs and indexes all the images on a system. For each image, it
> > needs to open it up, get some info, close it and store that info.
> > This is very CPU consuming and can pretty much bring the system to
> > a halt after a while.
>
> That doesn't seem right. Your daemon shouldn't be able to monopolize
> the CPU. Are you sure that's what's going on?
>
> I wonder if what is really happening is that you're memory usage is
> getting out of hand and causing virtual memory thrashing.

Likely because the image files he is processing are being loading into
the UBC (universal buffer cache) when they don't really need to be
(forcing user related items out of the cache).

man fcntl and look at F_NOCACHE

Review...

<http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/Articles/FilePerformance.html#//apple_ref/doc/uid/20001987-99732>

-Shawn
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >limiting CPU usage (From: Alexander Cohen <email@hidden>)
 >Re: limiting CPU usage (From: Thomas Davie <email@hidden>)
 >Re: limiting CPU usage (From: Alexander Cohen <email@hidden>)
 >Re: limiting CPU usage (From: Murat Konar <email@hidden>)

  • Prev by Date: Re: Custom alerts for Core Data validation errors ... how to?
  • Next by Date: Re: limiting CPU usage
  • Previous by thread: Re: limiting CPU usage
  • Next by thread: Re: limiting CPU usage
  • Index(es):
    • Date
    • Thread