Bug 172381 - nouveau kernel module leaks memory on hibernate.
Summary: nouveau kernel module leaks memory on hibernate.
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-20 22:33 UTC by Hussam Al-Tayeb
Modified: 2016-09-20 22:33 UTC (History)
0 users

See Also:
Kernel Version: 4.8rc6
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Hussam Al-Tayeb 2016-09-20 22:33:23 UTC
On hibernate, it seems that nouveau pushes vram into physical ram instead of swap (possibly on the assumption that it is going to be swaped to disk on hibernation).
In my case, I have 4GB physical ram and vram = 2GB.
   - Hibernate only works if amount of physical ram in use is less than 2G (4 - 2 = 2), otherwise I get an "error -12 creating hibernation image" "PM: Not enough free memory".
   - If hibernate works, on resume, vram is not freed from physical memory. rmmoding nouveau frees 500+ MB of physical ram.
   - So far, I have reproduced this on kernels 4.4 to 4.8rc6 (I have not attempted older kernels).
   - Cards tested are 630GT (fermi) and 730GT (kepler).

Note You need to log in before you can comment on or make changes to this bug.