You are not logged in.

#1 2024-11-06 20:57:20

CabalCrow
Member
Registered: 2024-05-14
Posts: 20

Process refuses to die even on shutdown.

``gulp serve`` refuses to die with ``kill -9`` or even with ``sudo systemctl reboot --force``.

This happens when ``gulp serve`` has been running for a while - it looks for file changes in a folder. By running it and then running ``touch test.md`` (it watches md files) it can easily get to 1.6 Gis of ram after which it becomes unkillable.
When shutting down, the shut down would hang with the message ``systemd-shutdown[1]: Waiting for process: 114556 (gulp serve)``. This message is repeated periodically. I need to shut it down via the power button to actually get it to shut down.

Offline

#2 2024-11-06 21:07:22

loqs
Member
Registered: 2014-03-06
Posts: 18,079

Re: Process refuses to die even on shutdown.

Is the process in the Uninterruptible Sleep (D) State?

Offline

#3 2024-11-06 21:11:50

CabalCrow
Member
Registered: 2024-05-14
Posts: 20

Re: Process refuses to die even on shutdown.

Yes, it shows ``DNL`` in ps stat column.

Offline

#4 2024-11-06 21:42:54

seth
Member
Registered: 2012-09-03
Posts: 59,061

Offline

#5 2024-11-06 22:06:02

CabalCrow
Member
Registered: 2024-05-14
Posts: 20

Re: Process refuses to die even on shutdown.

I might be misunderstanding, but this issue seems to be related to ``npm install``, rather than running a process via ``npm start``.

It also seems to be more of a general issue from what I see posted there, where I can reproduce it almost conisistently - I just need to do additional testing to see what are the minimum things I need to do to reproduce it.

Offline

#6 2024-11-07 02:25:10

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,143

Re: Process refuses to die even on shutdown.

No, the issue cited can happen in *any* node process, not just 'npm install'. If you scroll down, you'll see that this issue was closed in reference to this libuv issue, which appears to be the culprit.

Offline

#7 2024-11-07 08:18:04

seth
Member
Registered: 2012-09-03
Posts: 59,061

Re: Process refuses to die even on shutdown.

The uninterruptible state seems to be a (6.6) kernel bug triggered by this - are you using the LTS kernel and do you get the same behavior w/ 6.11 or in doubt 6.10?

Offline

#8 2024-11-07 08:20:39

CabalCrow
Member
Registered: 2024-05-14
Posts: 20

Re: Process refuses to die even on shutdown.

I'm using 6.6.59-1-lts, I can test with non-lts kernel.

Offline

#9 2024-11-08 16:57:19

loqs
Member
Registered: 2014-03-06
Posts: 18,079

Re: Process refuses to die even on shutdown.

Is the kernel issue resolved in linux-lts 6.6.60-1 currently in core-testing?

Offline

Board footer

Powered by FluxBB