Re: PROBLEM: Memory leaking when running kubernetes cronjobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 26, 2018 at 04:46:57PM +0100, Daniel McGinnes wrote:
> Hi Roman,
> 
> I have original memleak.py working, let me know when you have the modified 
> version ready. Thanks again for all the help with this!

Hi Daniel!

I think you only need to change the list of kernel tracepoints (defined in bpf_source_kernel)
to track only per-cpu allocations:


bpf_source_kernel = """

TRACEPOINT_PROBE(percpu, percpu_alloc_percpu) {
        gen_alloc_enter((struct pt_regs *)args, args->size);
        return gen_alloc_exit2((struct pt_regs *)args, (size_t)args->ptr);
}

TRACEPOINT_PROBE(percpu, percpu_free_percpu) {
        return gen_free_enter((struct pt_regs *)args, (void *)args->ptr);
}

"""

I've copy-pasted it from some of my hacky dev scripts, not sure if this one works,
apply on your own risk.


Thanks!




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux