• Pavel Emelyanov's avatar
    proc-parse: Don't open and stat every single map_files link · 740eb9c1
    Pavel Emelyanov authored
    Quite a lot of VMAs in tasks map the same file with different
    perms. In that case we may skip opening all these files, but
    "borrow" one from the previous VMA parsed.
    
    There's little sense in seeking more that just previous VMA,
    as same files are rarely (can be though) mapped in different
    locations.
    
    After this on a basic Centos6 container the number of opens and
    stats in this function drops from ~1500 to ~500.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    740eb9c1
proc_parse.c 27.5 KB