* Can I use main lcore as a worker core?
@ 2025-03-18 14:38 Antonio Di Bacco
2025-03-18 16:35 ` Rajesh Kumar
2025-03-18 21:55 ` Stephen Hemminger
0 siblings, 2 replies; 3+ messages in thread
From: Antonio Di Bacco @ 2025-03-18 14:38 UTC (permalink / raw)
To: users
When I instantiate a process with 4 cores, I have 3 worker cores and
one main lcore.
I'm wasting an isolated core (the main lcore) to do nothing.
I want to overcome this and use also the main lcore.
Best regards,
Anna.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can I use main lcore as a worker core?
2025-03-18 14:38 Can I use main lcore as a worker core? Antonio Di Bacco
@ 2025-03-18 16:35 ` Rajesh Kumar
2025-03-18 21:55 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Rajesh Kumar @ 2025-03-18 16:35 UTC (permalink / raw)
To: Antonio Di Bacco; +Cc: users
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
If that is what you wanted, then create 2 lcore on first physical core.
--lcores (0-1)@0,2@1,3@2,4@3
in short, you are running lcore 0,1 in physical-core 0, lcore 2 in
physical-core 1, etc.,
Thanks,
*-Rajesh*
On Tue, Mar 18, 2025 at 8:08 PM Antonio Di Bacco <a.dibacco.ks@gmail.com>
wrote:
> When I instantiate a process with 4 cores, I have 3 worker cores and
> one main lcore.
>
> I'm wasting an isolated core (the main lcore) to do nothing.
>
> I want to overcome this and use also the main lcore.
>
> Best regards,
> Anna.
>
[-- Attachment #2: Type: text/html, Size: 1102 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can I use main lcore as a worker core?
2025-03-18 14:38 Can I use main lcore as a worker core? Antonio Di Bacco
2025-03-18 16:35 ` Rajesh Kumar
@ 2025-03-18 21:55 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2025-03-18 21:55 UTC (permalink / raw)
To: Antonio Di Bacco; +Cc: users
On Tue, 18 Mar 2025 15:38:31 +0100
Antonio Di Bacco <a.dibacco.ks@gmail.com> wrote:
> When I instantiate a process with 4 cores, I have 3 worker cores and
> one main lcore.
>
> I'm wasting an isolated core (the main lcore) to do nothing.
>
> I want to overcome this and use also the main lcore.
>
> Best regards,
> Anna.
It is often useful to main lcore on non-isolated CPU and have it available
for application control tasks. I.e Don't use it for polling instead block
on epoll etc.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-18 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18 14:38 Can I use main lcore as a worker core? Antonio Di Bacco
2025-03-18 16:35 ` Rajesh Kumar
2025-03-18 21:55 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).