[launchd-dev] resource limits

Dave Zarzycki zarzycki at apple.com
Mon Jul 9 09:20:49 PDT 2007


Which build of the OS?


On Jul 7, 2007, at 4:16 PM, Greg Dingle wrote:

> Hi, I'm just trying to get the resource limits working with launchd  
> and a plist. Whatever I try I get a segmentation fault.
>
> I've tried with an empty dict:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd 
> ">
> <plist version="1.0">
> <dict>
> 	<key>Label</key>
> 	<string>TEST</string>
> 	<key>OnDemand</key>
> 	<false/>
> 	<key>ProgramArguments</key>
> 	<array>
> 		<string>/bin/ls</string>
> 	</array>
> 	
>    <key>SoftResourceLimits</key>
>    <dict>
>    </dict>
> 	
> </dict>
> </plist>
>
> And also with some dummy values:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd 
> ">
> <plist version="1.0">
> <dict>
> 	<key>Label</key>
> 	<string>TEST</string>
> 	<key>OnDemand</key>
> 	<false/>
> 	<key>ProgramArguments</key>
> 	<array>
> 		<string>/bin/ls</string>
> 	</array>
> 	
>    <key>SoftResourceLimits</key>
>    <dict>
>            <key>Core</key>
>            <integer>10000000000</integer>
>
>            <key>CPU</key>
>            <integer>10000000000</integer>
>
>            <key>Data</key>
>            <integer>10000000000</integer>
>
>            <key>FileSize</key>
>            <integer>10000000000</integer>
>
>            <key>MemoryLock</key>
>            <integer>10000000000</integer>
>
>            <key>NumberOfFiles</key>
>            <integer>8192</integer>
>
>            <key>NumberofProcesses</key>
>            <integer>150</integer>
>
>            <key>ResidentSetSize</key>
>            <integer>100000000</integer>
>
>            <key>Stack</key>
>            <integer>10000</integer>
>    </dict>
> 	
> </dict>
> </plist>
>
> Do I at least have the format correct? I couldn't find any examples  
> with google to work from.
>
> Cheers,
>
> Greeg
>
> _______________________________________________
> launchd-dev mailing list
> launchd-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/launchd-dev



More information about the launchd-dev mailing list