Struct JobLimits
Settings that control the limits associated with a JobObject.
Inherited Members
Namespace: Fs.Processes.JobObjects
Assembly: Fs.Processes.dll
Syntax
public struct JobLimits
Properties
| Improve this Doc View SourceActiveProcesses
The maximum number of active processes associated with the job.
Declaration
public uint? ActiveProcesses { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt32> |
Affinity
The processor affinity for all processes associated with the job.
Declaration
public ulong? Affinity { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
CpuRate
Limits to amount of CPU time processes associated with the job may use.
Declaration
public CpuLimit CpuRate { get; set; }
Property Value
Type | Description |
---|---|
CpuLimit |
MaximumMemory
The maximum amount of virtual memory committed to all processes associated with the job. Attempts to commit memory after this value is reached will fail.
Declaration
public ulong? MaximumMemory { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
MaximumProcessMemory
The maximum amount of virtual memory committed to a process associated with the job. Attempts to commit memory beyond this point will fail.
Declaration
public ulong? MaximumProcessMemory { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Options
A set of JobOptions that controls how the job operates.
Declaration
public JobOptions Options { get; set; }
Property Value
Type | Description |
---|---|
JobOptions |
PreserveTimeLimit
When true
, any effective TimeLimit value is preserved. When false
, the
TimeLimit value replaces the in-effect limit.
Declaration
public bool PreserveTimeLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Defaults to true
. Assignments to TimeLimit set this property to false
.
ProcessTimeLimit
Per-process user mode execution time-limit.
Declaration
public TimeSpan? ProcessTimeLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
TimeLimit
The per-job user mode execution time limit. The system adds the current time of the processes associated with the job to this limit. For example, if you set this to 1 minute and the job has a process that has accumulated 5 minutes of execution time, the enforced time limit is 6 minutes.
Declaration
public TimeSpan? TimeLimit { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.TimeSpan> |
Remarks
Assignments to this property set PreserveTimeLimit to false
.
UiRestrictions
Specifies UI restrictions to apply to processes associated with the job.
Declaration
public JobUiRestrictions UiRestrictions { get; set; }
Property Value
Type | Description |
---|---|
JobUiRestrictions |
WorkingSet
The minimum and maximum WorkingSet size for all processes in the job.
Declaration
public? WorkingSet { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.> |