All of lore.kernel.org
 help / color / mirror / Atom feed
* Why there is no GPU swap support in linux based systems?
@ 2016-02-09 18:12 alexhoppus
  2016-02-09 19:33 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: alexhoppus @ 2016-02-09 18:12 UTC (permalink / raw)
  To: kernelnewbies

(The things below are mainly related to arm mali systems)

Hi. Actually i want to know - why there is no GPU Swap support in Linux 
based systems? It seems that the GPU works with graphical contexts in 
the same fashion as CPU handle things. I mean there are page faults, GPU 
have its own MMU, the memory used by GPU devices allocated via trivial 
page_alloc mechanism. You would say that performance is a reason, but 
there are some swap backends like zram: they use in-memory compression 
instead of disk swapping. Moreover, i think there would be a GPU data 
which could be swapped without significant drawbacks, because it 
accessed very rare.

Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Why there is no GPU swap support in linux based systems?
  2016-02-09 18:12 Why there is no GPU swap support in linux based systems? alexhoppus
@ 2016-02-09 19:33 ` Greg KH
  2016-02-10 18:37   ` alexhoppus
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2016-02-09 19:33 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Feb 09, 2016 at 09:12:23PM +0300, alexhoppus wrote:
> (The things below are mainly related to arm mali systems)
> 
> Hi. Actually i want to know - why there is no GPU Swap support in Linux 
> based systems? It seems that the GPU works with graphical contexts in 
> the same fashion as CPU handle things. I mean there are page faults, GPU 
> have its own MMU, the memory used by GPU devices allocated via trivial 
> page_alloc mechanism. You would say that performance is a reason, but 
> there are some swap backends like zram: they use in-memory compression 
> instead of disk swapping. Moreover, i think there would be a GPU data 
> which could be swapped without significant drawbacks, because it 
> accessed very rare.

That's not how GPU devices work.  But if you think you could help
implement this, I'm sure the graphic developers are always welcome to
working patches being sent to them for review.

best of luck,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Why there is no GPU swap support in linux based systems?
  2016-02-09 19:33 ` Greg KH
@ 2016-02-10 18:37   ` alexhoppus
  0 siblings, 0 replies; 3+ messages in thread
From: alexhoppus @ 2016-02-10 18:37 UTC (permalink / raw)
  To: kernelnewbies

On 09.02.2016 22:33, Greg KH wrote:
> On Tue, Feb 09, 2016 at 09:12:23PM +0300, alexhoppus wrote:
>> (The things below are mainly related to arm mali systems)
>>
>> Hi. Actually i want to know - why there is no GPU Swap support in Linux
>> based systems? It seems that the GPU works with graphical contexts in
>> the same fashion as CPU handle things. I mean there are page faults, GPU
>> have its own MMU, the memory used by GPU devices allocated via trivial
>> page_alloc mechanism. You would say that performance is a reason, but
>> there are some swap backends like zram: they use in-memory compression
>> instead of disk swapping. Moreover, i think there would be a GPU data
>> which could be swapped without significant drawbacks, because it
>> accessed very rare.
> That's not how GPU devices work.  But if you think you could help
> implement this, I'm sure the graphic developers are always welcome to
> working patches being sent to them for review.
>
> best of luck,
>
> greg k-h
>
Could you (anyone), please, explain what exactly is wrong with this?
I'am not talking about discrete video cards. As i understand, in this case
video memory is a subset of pages from main memory. Also i will highlight
that i'am talking about swapping out some GPU related data f.e. textures,
for tasks which are not active at the moment (background graphical 
contexts).
As i see both CPU and GPU can handle page faults for graphical memory pages
and we can establish apropriate CPU and GPU mappings for this pages. So what
is the problem with this then?

Thanks for response.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-10 18:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 18:12 Why there is no GPU swap support in linux based systems? alexhoppus
2016-02-09 19:33 ` Greg KH
2016-02-10 18:37   ` alexhoppus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.