09-08-2012 дата публикации
Номер: US20120200579A1
Methods, systems, and computer readable media embodiments are disclosed for preemptive context-switching of processes running on an accelerated processing device. A method includes, responsive to an exception upon access to a memory by a process running on a accelerated processing device, whether to preempt the process based on the exception, and preempting, based upon the determining, the process from running on the accelerated processing device. 1. A method , comprising:responsive to an exception upon access to a memory by a process running on a accelerated processing device, determining whether to preempt the process based on the exception; andpreempting, based upon the determining, the process from running on the accelerated. processing device.2. The method of claim 1 , wherein the determining whether to preempt the process is performed by an operating system.3. The method of claim 1 , further comprising:requesting, using a memory management unit, data from the memory;determining, using the memory management unit, that the data is absent from an accessible area of the memory;receiving notification of the absence; andgenerating an interrupt associated with the absence.4. The method of claim 3 , further comprising:queuing an event indicating the exception to the operating system.5. The method of claim 4 , further comprising:requesting, by the accelerated processing device, fault handling associated with the exception from the memory management unit.6. The method of claim 5 , further comprising:receiving, from an operating system, a signal indicating a status regarding the queued event.7. The method of claim 1 , wherein the determining comprises:determining a type of the exception; andselecting to preempt or stall the process based upon the determined type.8. The method of claim 7 , wherein:the determining further comprises accessing statistics associated with memory exceptions; andthe selecting to preempt or stall is further based upon the accessed statistics.9. ...
Подробнее