Tag: leak
-
slabinfo – kernel slab allocator statistics
WHAT IS SLAB ALLOCATION ? Slab allocation is a memory management mechanism intended for the efficient memory allocation of kernel objects. It eliminates fragmentation caused by allocations and deallocations. The technique is used to retain allocated memory that contains a data object of a certain type for reuse upon subsequent allocations of objects of the […]
-
Detecting Memory Leaks (leak: + ive)
commandline session $gcc -g leak.c $valgrind –tool=memcheck –leak-check=full ./a.out ==4353== Memcheck, a memory error detector ==4353== Copyright (C) 2002-2012, and GNU GPL’d, by Julian Seward et al. ==4353== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==4353== Command: ./a.out ==4353== ==4353== ==4353== HEAP SUMMARY: ==4353== in use at exit: 100 bytes in 1 […]
-
Detecting Memory Leaks II
commandline session $gcc -g -ansi -pedantic -W -Wall algorithm.c algorithm.c: In function ‘main’: algorithm.c:47:5: warning: unused variable ‘value’ [-Wunused-variable] algorithm.c:36:7: warning: unused variable ‘p’ [-Wunused-variable] algorithm.c:35:5: warning: unused variable ‘i’ [-Wunused-variable] algorithm.c:34:14: warning: unused parameter ‘argc’ [-Wunused-parameter] algorithm.c:34:26: warning: unused parameter ‘argv’ [-Wunused-parameter] $valgrind –tool=memcheck –leak-check=full ./a.out ==23555== Memcheck, a memory error detector ==23555== Copyright […]
-
Detecting Memory leaks
commandline session $valgrind –tool=memcheck –leak-check=full ./a.out ==6002== Memcheck, a memory error detector ==6002== Copyright (C) 2002-2012, and GNU GPL’d, by Julian Seward et al. ==6002== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==6002== Command: ./a.out ==6002== -31 0 1 2 2 4 100 83 99 782 ==6002== ==6002== HEAP SUMMARY: ==6002== in […]