diff options
| author | Michel Dänzer <[email protected]> | 2018-04-25 15:32:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-05-15 18:44:17 +0000 |
| commit | 00862edba135c30d65b9af863163fdfa1f502c61 (patch) | |
| tree | d5b65af53514cbfacbcfc9caffaf49f936a2a9bd /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amd/display: disable FBC on underlay pipe (diff) | |
| download | kernel-00862edba135c30d65b9af863163fdfa1f502c61.tar.gz kernel-00862edba135c30d65b9af863163fdfa1f502c61.zip | |
drm/ttm: Use GFP_TRANSHUGE_LIGHT for allocating huge pages
GFP_TRANSHUGE tries very hard to allocate huge pages, which can result
in long delays with high memory pressure. I have observed firefox
freezing for up to around a minute due to this while restic was taking
a full system backup.
Since we don't really need huge pages, use GFP_TRANSHUGE_LIGHT |
__GFP_NORETRY instead, in order to fail quickly when there are no huge
pages available.
Set __GFP_KSWAPD_RECLAIM as well, in order for huge pages to be freed
up in the background if necessary.
With these changes, I'm no longer seeing freezes during a restic backup.
Cc: [email protected]
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
