Skip to content

Promdump OOMs when using Large date range #14

@ckamaleo

Description

@ckamaleo

Is there a limit on the number of hours/days we should use? It OOMs when we use 2 days or more, for example:

~$ ./promdump -min-time `date +%s%N --date "2022-09-24 00:00:00"` -max-time `date +%s%N --date "2022-09-27 00:00:00"` -data-dir /opt/yugabyte/prometheusv2 > test_prom_dump2.tgz
Killed

We See its stuck at this stage and then it gets killed:

<Skipping>
time=2022-09-28T17:04:48Z caller=level.go:63 level=debug message="checking block" path=01GE2GN42ZPGBTVXGX4BPPFVGK minTime(utc)=2022-09-28T14:00:01.387Z maxTime(utc)=2022-09-28T16:00:00Z
time=2022-09-28T17:04:48Z caller=level.go:63 level=debug message="skipping block" path=01GE2GN42ZPGBTVXGX4BPPFVGK
time=2022-09-28T17:04:48Z caller=level.go:63 level=debug message="finish parsing persistent blocks" numBlocksFound=6
Killed

/var/log/messages shows promdump is getting killed due to OOM:

Sep 28 17:06:20 kachand-ybany kernel: [4826585.690969] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice,task=promdump,pid=16712,uid=1016
Sep 28 17:06:20 kachand-ybany kernel: [4826585.691001] Out of memory: Killed process 16712 (promdump) total-vm:34456068kB, anon-rss:12744864kB, file-rss:0kB, shmem-rss:0kB, UID:1016 pgtables:25368kB oom_score_adj:0
Sep 28 17:06:20 kachand-ybany kernel: [4826585.889349] oom_reaper: reaped process 16712 (promdump), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Sep 28 17:08:19 kachand-ybany systemd[1]: Started Session 1560 of user centos.
Sep 28 17:09:14 kachand-ybany kernel: [4826760.104395] containerd invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=-999
Sep 28 17:09:14 kachand-ybany kernel: [4826760.104400] CPU: 0 PID: 6143 Comm: containerd Not tainted 5.4.0-1083-gcp #91~18.04.1-Ubuntu
Sep 28 17:09:14 kachand-ybany kernel: [4826760.104401] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022

Any workarounds we can use? other than increasing the memory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions