kriszyp / msgpackr-extract

Node addon for string extraction for msgpackr
MIT License
7 stars 3 forks source link

npm ci on AMD EPYC cpu server get cpu 100% usage and crashed server #15

Closed toknT closed 1 week ago

toknT commented 1 week ago

if run npm ci on a AMD EPYC cpu server it will crashed . But I can't find any error log of npm...

It also do not happend when run npm ci on Intel(R) Xeon(R) cpu (our testing server is Intel)... only run npm ci on AMD EPYC cpu (production server have more core and AMD is cheaper so we choose AMD...).

node-crashed--2024-10-15 125546 cpu-usage--2024-10-15 130206

if run npm install this will not happened

cpu info

~$ lscpu
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         52 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  2
  On-line CPU(s) list:   0,1
Vendor ID:               AuthenticAMD
  Model name:            AMD EPYC 9754 128-Core Processor
    CPU family:          25
    Model:               160
    Thread(s) per core:  2
    Core(s) per socket:  1
    Socket(s):           1
    Stepping:            2
    BogoMIPS:            4500.08
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr ss
                         e sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_
                         known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline
                         _timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalig
                         nsse 3dnowprefetch osvw topoext perfctr_core invpcid_single ibpb vmmcall fsgsbase tsc_adjus
                         t bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt c
                         lwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 avx512_bf16 clzero xsaveerptr
                          wbnoinvd arat avx512vbmi umip avx512_vbmi2 vaes vpclmulqdq avx512_vnni avx512_bitalg avx51
                         2_vpopcntdq rdpid fsrm
Virtualization features:
  Hypervisor vendor:     KVM
  Virtualization type:   full
Caches (sum of all):
  L1d:                   32 KiB (1 instance)
  L1i:                   32 KiB (1 instance)
  L2:                    1 MiB (1 instance)
  L3:                    16 MiB (1 instance)
NUMA:
  NUMA node(s):          1
  NUMA node0 CPU(s):     0,1
Vulnerabilities:
  Gather data sampling:  Not affected
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Mmio stale data:       Not affected
  Retbleed:              Not affected
  Spec rstack overflow:  Mitigation; safe RET, no microcode
  Spec store bypass:     Vulnerable
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Retpolines, IBPB conditional, STIBP disabled, RSB filling, PBRSB-eIBRS Not affe
                         cted
  Srbds:                 Not affected
  Tsx async abort:       Not affected

npm ls

$ npm ls msgpackr
production_server@1.11.0 /home/ubuntu/production_server
└─┬ bull@4.16.0
  └── msgpackr@1.11.0

npm log

$ cat 2024-10-15T05_12_26_716Z-debug-0.log
0 verbose cli /home/ubuntu/.volta/tools/image/node/20.10.0/bin/node /home/ubuntu/.volta/tools/image/node/20.10.0/lib/node_modules/npm/bin/npm-cli.js
1 info using npm@10.2.3
2 info using node@v20.10.0
3 timing npm:load:whichnode Completed in 15ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/home/ubuntu/.volta/tools/image/node/20.10.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/home/ubuntu/stt-server/.npmrc Completed in 5ms
10 timing config:load:project Completed in 6ms
11 timing config:load:file:/home/ubuntu/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/home/ubuntu/.volta/tools/image/node/20.10.0/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 11ms
17 timing npm:load:configload Completed in 11ms
18 timing config:load:flatten Completed in 2ms
19 timing npm:load:mkdirpcache Completed in 0ms
20 timing npm:load:mkdirplogs Completed in 2ms
21 verbose title npm exec prisma generate
22 verbose argv "exec" "--" "prisma" "generate"
23 timing npm:load:setTitle Completed in 0ms
24 timing npm:load:display Completed in 1ms
25 verbose logfile logs-max:10 dir:/home/ubuntu/.npm/_logs/2024-10-15T05_12_26_716Z-
26 verbose logfile /home/ubuntu/.npm/_logs/2024-10-15T05_12_26_716Z-debug-0.log
27 timing npm:load:logFile Completed in 6ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 49ms
31 silly logfile start cleaning logs, removing 1 files
32 silly logfile done cleaning log files
33 timing command:exec Completed in 1806ms
34 verbose exit 0
35 timing npm Completed in 1981ms
36 info ok
toknT commented 1 week ago

Sorry I should not open this issue in here. https://github.com/kriszyp/msgpackr/issues/148