kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Why there is no GPU swap support in linux based systems?
Date: Tue, 9 Feb 2016 11:33:40 -0800	[thread overview]
Message-ID: <20160209193340.GA1912@kroah.com> (raw)
In-Reply-To: <56BA2C07.3080409@gmail.com>

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

  reply	other threads:[~2016-02-09 19:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 18:12 Why there is no GPU swap support in linux based systems? alexhoppus
2016-02-09 19:33 ` Greg KH [this message]
2016-02-10 18:37   ` alexhoppus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160209193340.GA1912@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).