Kal: Kernel-assisted non-invasive memory leak tolerance with a general-purpose memory allocator

Jinkyu Jeong, Euiseong Seo, Jeonghwan Choi, Hwanju Kim, Heeseung Jo, Joonwon Lee

    Research output: Contribution to journalArticlepeer-review

    Abstract

    Memory leaks are a continuing problem in the software developed with programming languages, such as C and C++. A recent approach adopted by some researchers is to tolerate leaks in the software application and to reclaim the leaked memory by use of specially constructed memory allocation routines. However, such routines replace the usual general-purpose memory allocator and tend to be less efficient in speed and in memory utilization. We propose a new scheme which coexists with the existing memory allocation routines and which reclaims memory leaks. Our scheme identifies and reclaims leaked memory at the kernel level. There are some major advantages to our approach: (1) the application software does not need to be modified; (2) the application does not need to be suspended while leaked memory is reclaimed; (3) a remote host can be used to identify the leaked memory, thus minimizing impact on the application program's performance; and (4) our scheme does not degrade the service availability of the application while detecting and reclaiming memory leaks. We have implemented a prototype that works with the GNU C library and with the Linux kernel. Our prototype has been tested and evaluated with various real-world applications. Our results show that the computational overhead of our approach is around 2% of that incurred by the conventional memory allocator in terms of throughput and average response time. We also verified that the prototype successfully suppressed address space expansion caused by memory leaks when the applications are run on synthetic workloads.

    Original languageEnglish
    Pages (from-to)605-625
    Number of pages21
    JournalSoftware - Practice and Experience
    Volume40
    Issue number8
    DOIs
    Publication statusPublished - 2010 Jul

    All Science Journal Classification (ASJC) codes

    • Software

    Fingerprint

    Dive into the research topics of 'Kal: Kernel-assisted non-invasive memory leak tolerance with a general-purpose memory allocator'. Together they form a unique fingerprint.

    Cite this