Skip to content

indexing process causes unresponsive system until OOM-killed #33

@montchr

Description

@montchr

As I was running rippkgs-index for the first time, my desktop session froze / became unresponsive. Eventually, the nix eval process was terminated by the OOM killer.

I then saw that my terminal application no longer had any active sessions/frames. Unfortunately, the index output file is nowhere to be found.

I've included some logs below. Let me know if you need more info. However, I feel reluctant to make another attempt to build an index until this issue is fixed or there is some other way to provide an index (#30).

Apr 07 23:27:27 tuvok kernel: nix-daemon invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
Apr 07 23:27:27 tuvok kernel: CPU: 7 PID: 418137 Comm: nix-daemon Tainted: G S                 6.6.0-asahi #1-NixOS
Apr 07 23:27:27 tuvok kernel: Hardware name: Apple MacBook Air (13-inch, M2, 2022) (DT)
Apr 07 23:27:27 tuvok kernel: Call trace:
Apr 07 23:27:27 tuvok kernel:  dump_backtrace+0x94/0x114
Apr 07 23:27:27 tuvok kernel:  show_stack+0x18/0x24
Apr 07 23:27:27 tuvok kernel:  dump_stack_lvl+0x48/0x60
Apr 07 23:27:27 tuvok kernel:  dump_stack+0x18/0x24
Apr 07 23:27:27 tuvok kernel:  dump_header+0x44/0x1bc
Apr 07 23:27:27 tuvok kernel:  oom_kill_process+0x130/0x2d0
Apr 07 23:27:27 tuvok kernel:  out_of_memory+0xd8/0x344
Apr 07 23:27:27 tuvok kernel:  __alloc_pages_may_oom+0x11c/0x1b4
Apr 07 23:27:27 tuvok kernel:  __alloc_pages_slowpath.constprop.0+0x714/0x924
Apr 07 23:27:27 tuvok kernel:  __alloc_pages+0x214/0x29c
Apr 07 23:27:27 tuvok kernel:  __folio_alloc+0x14/0x20
Apr 07 23:27:27 tuvok kernel:  __filemap_get_folio+0xe4/0x300
Apr 07 23:27:27 tuvok kernel:  filemap_fault+0x110/0x7b0
Apr 07 23:27:27 tuvok kernel:  __do_fault+0x3c/0x12c
Apr 07 23:27:27 tuvok kernel:  do_read_fault+0x50/0x240
Apr 07 23:27:27 tuvok kernel:  do_pte_missing+0x168/0x278
Apr 07 23:27:27 tuvok kernel:  __handle_mm_fault+0x214/0x27c
Apr 07 23:27:27 tuvok kernel:  handle_mm_fault+0x68/0x27c
Apr 07 23:27:27 tuvok kernel:  do_page_fault+0x204/0x4c0
Apr 07 23:27:27 tuvok kernel:  do_translation_fault+0x38/0x4c
Apr 07 23:27:27 tuvok kernel:  do_mem_abort+0x44/0x94
Apr 07 23:27:27 tuvok kernel:  el0_ia+0x5c/0x170
Apr 07 23:27:27 tuvok kernel:  el0t_64_sync_handler+0xcc/0x12c
Apr 07 23:27:27 tuvok kernel:  el0t_64_sync+0x190/0x194
Apr 07 23:27:27 tuvok kernel: Mem-Info:
Apr 07 23:27:27 tuvok kernel: active_anon:640 inactive_anon:945204 isolated_anon:0
                               active_file:170 inactive_file:11 isolated_file:0
                               unevictable:28 dirty:0 writeback:0
                               slab_reclaimable:7580 slab_unreclaimable:7817
                               mapped:11575 shmem:13491 pagetables:4149
                               sec_pagetables:0 bounce:0
                               kernel_misc_reclaimable:0
                               free:7396 free_pcp:428 free_cma:0
Apr 07 23:27:27 tuvok kernel: Node 0 active_anon:10240kB inactive_anon:15123264kB active_file:2720kB inactive_file:176kB unevictable:448kB isolated(anon):0kB isolated(file):0kB mapped:185200kB dirty:0kB writeback:0kB shmem:215856kB writeback_tmp:0kB kernel_stack:22096kB pagetables:66384kB sec_pagetables:0kB all_unreclaimable? no
Apr 07 23:27:27 tuvok kernel: DMA free:118336kB boost:70960kB min:86816kB low:102544kB high:118272kB reserved_highatomic:32768KB active_anon:10240kB inactive_anon:15123264kB active_file:0kB inactive_file:0kB unevictable:448kB writepending:0kB present:16049696kB managed:15745344kB mlocked:416kB bounce:0kB free_pcp:6848kB local_pcp:912kB free_cma:0kB
Apr 07 23:27:27 tuvok kernel: lowmem_reserve[]: 0 0 0 0
Apr 07 23:27:27 tuvok kernel: DMA: 87*16kB (EH) 24*32kB (EH) 1039*64kB (UEH) 313*128kB (UE) 26*256kB (UE) 0*512kB 0*1024kB 0*2048kB 0*4096kB 0*8192kB 0*16384kB 0*32768kB = 115376kB
Apr 07 23:27:27 tuvok kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Apr 07 23:27:27 tuvok kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=32768kB
Apr 07 23:27:27 tuvok kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
Apr 07 23:27:27 tuvok kernel: 13796 total pagecache pages
Apr 07 23:27:27 tuvok kernel: 0 pages in swap cache
Apr 07 23:27:27 tuvok kernel: Free swap  = 0kB
Apr 07 23:27:27 tuvok kernel: Total swap = 0kB
Apr 07 23:27:27 tuvok kernel: 1003106 pages RAM
Apr 07 23:27:27 tuvok kernel: 0 pages HighMem/MovableOnly
Apr 07 23:27:27 tuvok kernel: 19022 pages reserved
Apr 07 23:27:27 tuvok kernel: 4096 pages cma reserved
Apr 07 23:27:27 tuvok kernel: Tasks state (memory values in pages):
[...output elided...]
Apr 07 23:27:27 tuvok kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/[email protected]/app.slice/app-gnome-org.codeberg.dnkl.foot-13409.scope,task=nix,pid=418134,uid=1000
Apr 07 23:27:27 tuvok kernel: Out of memory: Killed process 418134 (nix) total-vm:10673712kB, anon-rss:10536784kB, file-rss:512kB, shmem-rss:0kB, UID:1000 pgtables:5296kB oom_score_adj:100
Apr 07 23:27:27 tuvok gnome-shell[2185]: libinput error: event4  - kanata: client bug: event processing lagging behind by 39ms, your system is too slow
Apr 07 23:27:27 tuvok gnome-shell[2185]: libinput error: event4  - kanata: client bug: event processing lagging behind by 250ms, your system is too slow
Apr 07 23:27:27 tuvok gnome-shell[2185]: libinput error: client bug: timer event2 hold: scheduled expiry is in the past (-56ms), your system is too slow
Apr 07 23:27:27 tuvok systemd[2070]: app-gnome-org.codeberg.dnkl.foot-13409.scope: A process of this unit has been killed by the OOM killer.
Apr 07 23:27:27 tuvok systemd[1]: [email protected]: A process of this unit has been killed by the OOM killer.
Apr 07 23:27:27 tuvok systemd-udevd[762]: port0: Worker [828121] processing SEQNUM=4481 is taking a long time
Apr 07 23:27:27 tuvok nix-daemon[418137]: unexpected Nix daemon error: error: interrupted by the user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions