Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] How to stop kernel workqueues [iprt-VBoxWQueue] and [iprt-VboxTscthread]

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
admiincomp
Posts: 41
Joined: 2023-12-19 09:25
Been thanked: 1 time

[Solved] How to stop kernel workqueues [iprt-VBoxWQueue] and [iprt-VboxTscthread]

#1 Post by admiincomp »

I am running Debian 12 with 2 processes running from start up.

iprt-VBoxWQueue
iprt-VboxTscthread

I believe these are Virtualbox processes but they start without me activating Virtualbox. I would like to find where they start from. is it possible to determine what starts these processes ?
Last edited by admiincomp on 2024-05-06 13:46, edited 1 time in total.

lindi
Debian Developer
Debian Developer
Posts: 467
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: finding start up process

#2 Post by lindi »

You can use the command

Code: Select all

sudo systemctl status
to see what processes are part of each service. For example on my system I see

Code: Select all

─bolt.service
 └─937 /usr/libexec/boltd
─colord.service
 └─1063 /usr/libexec/colord
─cron.service
 └─867 /usr/sbin/cron -f
Note that virtualbox is not part of the official Debian distribution (main).

User avatar
pbear
Posts: 397
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 65 times

Re: finding start up process

#3 Post by pbear »

I have both Virt-Manager and VirtualBox installed (Deb12). At startup, lindi's command shows two leasehelper services for VirtMan, nothing for VBox. When I open VBox, these services appear:

Code: Select all

   CGroup: /
           └─user.slice
             └─user-1000.slice
               ├─session-1.scope
               │ ├─2633 /usr/lib/virtualbox/VirtualBox
               │ ├─2659 /usr/lib/virtualbox/VBoxXPCOMIPCD
               │ └─2665 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
When I close VBox, they disappear.

Aki
Global Moderator
Global Moderator
Posts: 3103
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 77 times
Been thanked: 419 times

Re: finding start up process

#4 Post by Aki »

Hello,
admiincomp wrote: 2024-05-03 16:02 [..]

Code: Select all

iprt-VBoxWQueue
iprt-VboxTscthread
I believe these are Virtualbox processes but they start without me activating Virtualbox. I would like to find where they start from. is it possible to determine what starts these processes ?
They are kernel workqueues (something like process threads, but in kernel space) [1]; this is the source code [2]:

Code: Select all

[..]
DECLHIDDEN(int) rtR0InitNative(void)
{
    int rc = VINF_SUCCESS;
    IPRT_LINUX_SAVE_EFL_AC();

#if RTLNX_VER_MIN(2,5,41)
 #if RTLNX_VER_MIN(2,6,13)
    g_prtR0LnxWorkQueue = create_workqueue("iprt-VBoxWQueue");
 #else
    g_prtR0LnxWorkQueue = create_workqueue("iprt-VBoxQ");
 #endif
    if (!g_prtR0LnxWorkQueue)
        rc = VERR_NO_MEMORY;
#endif

    IPRT_LINUX_RESTORE_EFL_AC();
    return rc;
}
[..]
Therefore, they are started by the VirtualBox kernel modules that are started by the Debian GNU/Linux kernel.

Hope this helps.

---
[1] https://docs.kernel.org/core-api/workqueue.html
[2] https://codesearch.debian.net/show?file ... c&line=113
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
pbear
Posts: 397
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 65 times

Re: finding start up process

#5 Post by pbear »

For comparison, I'm using the stock kernel, 6.1.0-20 as of today.

admiincomp
Posts: 41
Joined: 2023-12-19 09:25
Been thanked: 1 time

Re: finding start up process

#6 Post by admiincomp »

I wanted to identify the process file that starts up automatically so I can stop the process.
if i run the command systemctl list-units --type=service
I see the services even though Virtualbox is not running.

vboxautostart-service.service >
vboxballoonctrl-service.service >
vboxdrv.service >
vboxweb-service.service

Where are these services starting from ?

Aki
Global Moderator
Global Moderator
Posts: 3103
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 77 times
Been thanked: 419 times

Re: finding start up process

#7 Post by Aki »

Hello,

These services are started by the init process (systemd).

As an example, these are commands to stop them:

Code: Select all

$ pgrep -lf iprt
5753 iprt-VBoxWQueue

$ sudo systemctl stop vboxdrv.service

$ pgrep -lf iprt
Of course, if you do not want them to start the next time you boot, you will have to disable these services; i.e.:

Code: Select all

sudo systemctl disable vboxdrv.service
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

admiincomp
Posts: 41
Joined: 2023-12-19 09:25
Been thanked: 1 time

Re: finding start up process

#8 Post by admiincomp »

Thank you.

Aki
Global Moderator
Global Moderator
Posts: 3103
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 77 times
Been thanked: 419 times

Re: [Solved] finding start up process

#9 Post by Aki »

I'm glad you sorted it out. :)

I updated the subject of the first post from:
  • [Solved] finding start up process
to:
  • [Solved] How to stop kernel workqueues [iprt-VBoxWQueue] and [iprt-VboxTscthread]
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply