OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Limiting a Process to a set amount of available Memory


Post Reply New Thread Subscribe

 
Thread Tools
MicroMac

 
Member Since: Mar 07, 2011
Location: Dallas, TX (USA)
Posts: 5
MicroMac is on a distinguished road
Mac Specs: MacBook Pro 13" (mid 2009), iPhone 3G (White), iMac (Blondi Blue)

MicroMac is offline
Greetings fellow Macs.

Is there a way to limit particular Process to a set amount of RAM? And, make it permanent, if possible.

For instance:
prevent the process- DTDKSymbolHelper -from using any more than 512MB of real memory. Currently this process can use up to 1.3GB or more of memory!


My Specs:
MacBook Pro 13" (mid 2009)
OS X 10.6.6
4GB RAM (from 2GB)
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 5,852
Raz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud of
Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi

Raz0rEdge is online now
No there most likely isn't a way to limit a process to a certain amount of memory, modern OS' portray RAM as infinite through first making physical RAM available and when that begins to shrink swapping unused pages of RAM to the hard disk to make more of it available, this is how the system can operate for as long as they do with programs coming and going..

Why are you interested in limiting this application anyway? Is it causing some issue on your Mac? Are you just worried about the high number?

Regards
QUOTE Thanks
MicroMac

 
Member Since: Mar 07, 2011
Location: Dallas, TX (USA)
Posts: 5
MicroMac is on a distinguished road
Mac Specs: MacBook Pro 13" (mid 2009), iPhone 3G (White), iMac (Blondi Blue)

MicroMac is offline
@Raz0rEdge
Thank you for the fast reply and inquiry..
Here's my situation/details:

My Issue -
I identified the process to be (from top command line): DTDKSymbolHelper

it runs ONLY when Organizer in Xcode launches after I connect my iPhone 3G for testing my app. A pop-up shows:

Unknown iOS detected
Xcode does not have debugging information for the version of iOS on the device named “master”. Xcode can collect debugging data from the device to enable development with this version of iOS. This process only needs to be done once per iOS version, and will take several minutes.

either choose "Cancel" or "Collect"

If I hit "Cancel" I am not able to use my device to test my app.
If I hit "Collect" it does what it states, but would grind the system down to a halt AND requires me to do this EVERYTIME I launch Xcode, even though it says it "...needs to be done once per iOS version"

That process will take up to 1.3GB or more of RAM when it gets going. It will release after it's done, after 3-4 minutes.

What I have tried -
1. kill the specific process: DTDKSymbolHelper - but again I am left with not being able to use my iPhone.
2. Close All other programs other than Xcode - doesn't help it will still take up that much memory.
3. Upgraded my RAM from 2GB to 4GB - Hasn't helped.


Specs:
MacBook Pro 13" (mid 2009)
OS X 10.6.6
4GB RAM (from 2GB)

Xcode v. 3.2.5
iOS (on iPhone 3G) 4.2.1

Any help will be much appreciated.
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 5,852
Raz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud ofRaz0rEdge has much to be proud of
Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi

Raz0rEdge is online now
Thank you for posting the full issue, this post should probably be moved to the Development forum..

I've played with Xcode and have deployed apps to the simulator but not to a device, so I'm not really sure what's going on there..

But just as a test, have you tried uninstalling and re-install Xcode to see if it changes anything??

Regards
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,331
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You could look into using ulimit. I'm not familiar with it so I suggest that you do further reading before using it.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST.
QUOTE Thanks
MicroMac

 
Member Since: Mar 07, 2011
Location: Dallas, TX (USA)
Posts: 5
MicroMac is on a distinguished road
Mac Specs: MacBook Pro 13" (mid 2009), iPhone 3G (White), iMac (Blondi Blue)

MicroMac is offline
Quote:
Originally Posted by Raz0rEdge View Post
Thank you for posting the full issue, this post should probably be moved to the Development forum..

I've played with Xcode and have deployed apps to the simulator but not to a device, so I'm not really sure what's going on there..

But just as a test, have you tried uninstalling and re-install Xcode to see if it changes anything??

Regards
Certainly, I figured the details would be helpful...
Okay, who should I ask to move this post?

The re-install option would be my Last resort. Because after you pay Apple for the developer license, there's quite a few More steps to get/set profiles and certificates into Xcode to get it fully operational with your test hardware. I really don't want to go through that right now... a re-install will loose all those profiles & certificates.

Quote:
Originally Posted by vansmith View Post
You could look into using ulimit. I'm not familiar with it so I suggest that you do further reading before using it.
Well, thank you for the suggestion.
Hopefully a member who has used ulimit will chime in on this.
(Because, for me at least, reading the man pages without Working examples makes it a tad difficult for me to comprehend it's direct usage.)

****

I know that back in the dark ages - OS 9.x - you were able to limit physical memory per application. Which I used.

And, in OS X:

I read about launchd and there's quite a few sites that just rehash its man page, without working examples how to make this command work for my situation.

Same goes for setrlimit...

Anyone who's more familiar with these commands, please enlighten a fellow mac-brethren on how to (or even if it can) do what I've stated.

I would be sincerely grateful.
QUOTE Thanks
MicroMac

 
Member Since: Mar 07, 2011
Location: Dallas, TX (USA)
Posts: 5
MicroMac is on a distinguished road
Mac Specs: MacBook Pro 13" (mid 2009), iPhone 3G (White), iMac (Blondi Blue)

MicroMac is offline
bump..

anyone?
QUOTE Thanks
MicroMac

 
Member Since: Mar 07, 2011
Location: Dallas, TX (USA)
Posts: 5
MicroMac is on a distinguished road
Mac Specs: MacBook Pro 13" (mid 2009), iPhone 3G (White), iMac (Blondi Blue)

MicroMac is offline
Just an update...

No luck in finding any answer(s) yet.

I have just installed Xcode 4.0 (March 14, 2011)
I am still experiencing the same exact problem.
QUOTE Thanks

Post Reply New Thread Subscribe


« XCode 4 ? | Need Help Creating a List of External Hard Drives in Python »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
HELP! Mac OSX vs. WinXP Multitasking Limits?! TekWiz Switcher Hangout 31 11-20-2006 07:00 PM
Memory Installation Order mac57 Apple Desktops 2 07-03-2006 03:37 PM
Adding Memory DJDP Apple Desktops 3 06-22-2006 09:36 AM
Need Help with Memory problem JavaJunky Apple Notebooks 8 03-12-2005 02:11 AM
Trans Intl. offers 1GB iBook G4 memory modules Murlyn Apple Notebooks 0 11-12-2003 01:41 AM

All times are GMT -4. The time now is 09:10 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?