* Regarding Virtual address split for a specific process
@ 2022-08-01 6:45 Yeleswarapu, Nagaradhesh
2022-08-01 15:54 ` Vlastimil Babka (SUSE)
0 siblings, 1 reply; 4+ messages in thread
From: Yeleswarapu, Nagaradhesh @ 2022-08-01 6:45 UTC (permalink / raw)
To: linux-mm@kvack.org
[AMD Official Use Only - General]
Hi,
From the config options(CONFIG_VMSPLIT_3G/2G/1G), looks like 3/1 or 2/2 or 1/3 split is for all the user space processes.
Is it possible to do 2/2 split for a specific process and let all the other processes use default 3/1 (user/kernel) VA split?
Thanks,
Nagaradhesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding Virtual address split for a specific process
2022-08-01 6:45 Regarding Virtual address split for a specific process Yeleswarapu, Nagaradhesh
@ 2022-08-01 15:54 ` Vlastimil Babka (SUSE)
2022-08-02 12:08 ` Yeleswarapu, Nagaradhesh
0 siblings, 1 reply; 4+ messages in thread
From: Vlastimil Babka (SUSE) @ 2022-08-01 15:54 UTC (permalink / raw)
To: Yeleswarapu, Nagaradhesh, linux-mm@kvack.org
On 8/1/22 08:45, Yeleswarapu, Nagaradhesh wrote:
> [AMD Official Use Only - General]
>
> Hi,
>
> From the config options(CONFIG_VMSPLIT_3G/2G/1G), looks like 3/1 or 2/2 or 1/3 split is for all the user space processes.
Yeah, but only for 32bit architectures.
> Is it possible to do 2/2 split for a specific process and let all the other processes use default 3/1 (user/kernel) VA split?
No, it's hardcoded in the kernel compilation. What would be the use case?
> Thanks,
> Nagaradhesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Regarding Virtual address split for a specific process
2022-08-01 15:54 ` Vlastimil Babka (SUSE)
@ 2022-08-02 12:08 ` Yeleswarapu, Nagaradhesh
2022-08-02 12:19 ` Matthew Wilcox
0 siblings, 1 reply; 4+ messages in thread
From: Yeleswarapu, Nagaradhesh @ 2022-08-02 12:08 UTC (permalink / raw)
To: Vlastimil Babka (SUSE), linux-mm@kvack.org
[AMD Official Use Only - General]
> On 8/1/22 08:45, Yeleswarapu, Nagaradhesh wrote:
> > [AMD Official Use Only - General]
> >
> > Hi,
> >
> > From the config options(CONFIG_VMSPLIT_3G/2G/1G), looks like 3/1 or 2/2 or
> 1/3 split is for all the user space processes.
>
> Yeah, but only for 32bit architectures.
Thanks for your response, can you please share details on how to change memory split for a 64bit architecture?
>
> > Is it possible to do 2/2 split for a specific process and let all the other
> processes use default 3/1 (user/kernel) VA split?
>
> No, it's hardcoded in the kernel compilation. What would be the use case?
We are trying to offload a task from one Host to another Host, to achieve this we are looking to change
offload process Virtual address split to 2G/2G and let other processes use default memory split(3G/1G).
Thanks,
Nagaradhesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regarding Virtual address split for a specific process
2022-08-02 12:08 ` Yeleswarapu, Nagaradhesh
@ 2022-08-02 12:19 ` Matthew Wilcox
0 siblings, 0 replies; 4+ messages in thread
From: Matthew Wilcox @ 2022-08-02 12:19 UTC (permalink / raw)
To: Yeleswarapu, Nagaradhesh; +Cc: Vlastimil Babka (SUSE), linux-mm@kvack.org
On Tue, Aug 02, 2022 at 12:08:36PM +0000, Yeleswarapu, Nagaradhesh wrote:
> [AMD Official Use Only - General]
>
> > On 8/1/22 08:45, Yeleswarapu, Nagaradhesh wrote:
> > > [AMD Official Use Only - General]
> > >
> > > Hi,
> > >
> > > From the config options(CONFIG_VMSPLIT_3G/2G/1G), looks like 3/1 or 2/2 or
> > 1/3 split is for all the user space processes.
> >
> > Yeah, but only for 32bit architectures.
> Thanks for your response, can you please share details on how to change memory split for a 64bit architecture?
You can't. With a 64-bit kernel, you either get 47 bits (128TB) of
virtual address for a 64-bit process with 4-level page tables or 56 bits
(64PB) with 64-bit kernels.
I believe 32-bit tasks get almost 4GB of address space when run on a
64-bit kernel, but honestly I've forgotten.
> >
> > > Is it possible to do 2/2 split for a specific process and let all the other
> > processes use default 3/1 (user/kernel) VA split?
> >
> > No, it's hardcoded in the kernel compilation. What would be the use case?
> We are trying to offload a task from one Host to another Host, to achieve this we are looking to change
> offload process Virtual address split to 2G/2G and let other processes use default memory split(3G/1G).
32-bit kernels are still relevant? They don't even get security fixes
in some cases.
https://lore.kernel.org/lkml/Ys%2FkfDk7mVE09N3L@worktop.programming.kicks-ass.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-02 12:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-01 6:45 Regarding Virtual address split for a specific process Yeleswarapu, Nagaradhesh
2022-08-01 15:54 ` Vlastimil Babka (SUSE)
2022-08-02 12:08 ` Yeleswarapu, Nagaradhesh
2022-08-02 12:19 ` Matthew Wilcox
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).