-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Re-organized resmem_cg.c code efficiently to use cgroups v2. - Changed cgmemread to cgmem & cgmemval, adding new calls like cg_free_mem, cg_free_swap, cg_active, cg_inactive which reuse the existing calls. - Modified getmeminfoall to use above functions. - Added new function cg_res_val so it can be re-used with normal API and the bulk API. - Completed cgroups v2 code for RES_MEM_FREE, RES_MEM_AVAILABLE, RES_MEM_TOTAL RES_MEM_ACTIVE, RES_MEM_INACTIVE, RES_MEM_SWAPTOTAL, RES_MEM_SWAPFREE, RES_MEM_INFOALL. To differentiate between normal memory, pid field is non-null in cgroups calls. - Added scaling for cgroups which use the res->res_unit[i] fields to get bulk info about different fields at once. - Bulk API is fetched using the cg_res_val() call - Added Makefile to tests/MEM and added cgroups test code in mem_test_cg.c. - Fixed mem.sh to use Makefile. - Fixed some misc. issues in resfs.c, resnet.c, resmem.c, resproc.c, resvm.c, stat.c, resource_impl.h. Signed-off-by: Anjali Kulkarni <[email protected]>
- Loading branch information
Showing
14 changed files
with
268 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.