>Synopsis:      panic: malloc: out of space in kmem_map
>Category:      kernel amd64
>Environment:
        System      : OpenBSD 7.8
        Details     : OpenBSD 7.8 (GENERIC.MP) #1: Sat Nov 29 11:02:59 MST 2025

[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:

The machine is running 7.8 + syspatches under VMware:

hw.model=Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz
hw.vendor=VMware, Inc.
hw.product=VMware20,1
hw.physmem=4277600256
hw.ncpufound=2
hw.ncpuonline=2

and panics with a out of space in kmem_map message.  Panic, trace and
ps shown below.

I wish I could show malloc, but the machine is in a remote location
and these are the only ddb commands I got before the operator decided
to reboot.

panic: malloc: out of space in kmem_map
Stopped at      db_enter+0x14:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*327273  39043      0     0x14000      0x200    0  systq

db_enter() at db_enter+0x14
panic(ffffffff82573eac) at panic+0xd5
malloc(2a39,2,9) at malloc+0x823
vmt_nicinfo_task(ffff8000000f8800) at vmt_nicinfo_task+0xec
taskq_thread(ffffffff82a19e10) at taskq_thread+0x129
end trace frame: 0x0, count: -5

PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 34434  429242      1      0  3    0x100083  ttyin         getty
 45351  273621      1      0  3    0x100083  ttyin         getty
 15766   13242      1      0  3    0x100083  ttyin         getty
 22501  485732      1      0  3    0x100083  ttyin         getty
 21121   14373      1      0  3    0x100083  ttyin         getty
 80812  223396      1      0  3    0x100098  kqread        cron
 38632  393850      1  10000  3        0x80  kqread        python3.12
 50241  286369      1  10000  3        0x80  kqread        python3.12
 47425  216199      1  10000  3        0x80  kqread        python3.12
 15348  391586      1  10000  3        0x90  kqread        python3.12
 83699  242757      1  10000  3        0x90  kqread        python3.12
 85859  155143      1  10000  3        0x80  kqread        python3.12
   140   96058      1  10000  3        0x90  kqread        python3.12
 16478  159685      1  10000  3        0x90  kqread        python3.12
 83476  226912      1  10000  3        0x80  kqread        python3.12
 90068  368113      1  10000  3        0x90  kqread        python3.12
 48780   36449      1     76  3   0x1000090  kqread        p0f3
 41298  290255      1    760  3        0x90  kqread        snmpd
 47065  410042  45934     95  3   0x1100092  kqread        smtpd
 69131  288318  45934    103  3   0x1100092  kqread        smtpd
 16340   95197  45934     95  3   0x1100092  kqread        smtpd
 93858  467609  45934     95  3    0x100092  kqread        smtpd
 77301  381360  45934     95  3   0x1100092  kqread        smtpd
 21497  499144  45934     95  3   0x1100092  kqread        smtpd
 45934  163643      1      0  3    0x100080  kqread        smtpd
 16761  447799      1      0  3        0x88  kqread        sshd
 57214  310491      0      0  3     0x14200  acct          acct
 56721  278490      1      0  3    0x100080  kqread        ntpd
 57480  393701   1368     83  3    0x100092  kqread        ntpd
  1368  281100      1     83  3   0x1100092  kqread        ntpd
 24741  184818      1     53  3   0x1000090  kqread        unbound
 74565  391331  50900     74  3   0x1100092  bpf           pflogd
 50900   22496      1      0  3        0x80  sbwait        pflogd
 65059  173120   1614     73  3   0x1100090  kqread        syslogd
  1614  223274      1      0  3    0x100082  sbwait        syslogd
 12330  136338      0      0  3     0x14200  bored         smr
 60396   73572      0      0  3     0x14200  pgzero        zerothread
 46408  208812      0      0  3     0x14200  aiodoned      aiodoned
 44729  344674      0      0  3     0x14200  syncer        update
 61833  363291      0      0  3     0x14200  cleaner       cleaner
 52556  361252      0      0  3     0x14200  reaper        reaper
 64026  456140      0      0  3     0x14200  pgdaemon      pagedaemon
 75515  242523      0      0  3     0x14200  bored         wsdisplay0
 14784  395040      0      0  3     0x14200  usbtsk        usbtask
 78465  209741      0      0  3     0x14200  usbatsk       usbatsk
 70654  374635      0      0  3  0x40014200  acpi0         acpi0
 48248   77950      0      0  7  0x40014200                idle1
 21581   78258      0      0  3     0x14200  bored         softnet1
 42528  246111      0      0  3     0x14200  netlock       softnet0
 84149  341522      0      0  3     0x14200  bored         systqmp
*39043  327273      0      0  7     0x14200                systq
 50129  384305      0      0  3     0x14200  netlock       softclockmp
 86142  318003      0      0  3  0x40014200  tmoslp        softclock
 95618  290560      0      0  3  0x40014200                idle0
     1  184077      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper

>How-To-Repeat:

It seems to be related to VMWare when the machine is under
medium/heavy network traffic.  Other baremetal machines with similar
daemons/traffic work just fine.

Any command (vmstat, systat, etc), while the machine is alive, that
could help?

Thanks,
--Kor

>Fix:

Unknown.

Reply via email to