Skip to content
Snippets Groups Projects
Commit 76404d3c authored by Raphael S. Carvalho's avatar Raphael S. Carvalho Committed by Pekka Enberg
Browse files

arc: Re-enable portions of code needed by reclaim thread


arc_reclaim_needed checks if reclaiming is needed by looking
at two possible conditions:
1) the variable needfree is set.
2) memory used is higher than 3/4 of the system memory.

The actual problem is that arc_reclaim_needed was completely
disabled. It would always return 0, i.e. reclaim not needed.

Add stub to vm_paging_needed to avoid an unneeded ifdef.

Reclaiming support is planned, so let's re-enable what's needed
and implement kmem_used which is used to determine the amount
of memory used so far.

Reviewed-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
Signed-off-by: default avatarRaphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent d86cdb11
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment