From: Matthew Wilcox <willy@infradead.org>
To: "Yeleswarapu, Nagaradhesh" <nagaradhesh.yeleswarapu@amd.com>
Cc: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Regarding Virtual address split for a specific process
Date: Tue, 2 Aug 2022 13:19:10 +0100 [thread overview]
Message-ID: <YukWPuFSATu5TiQv@casper.infradead.org> (raw)
In-Reply-To: <SN1PR12MB243136CB0FFDFBB4724AB463FD9D9@SN1PR12MB2431.namprd12.prod.outlook.com>
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/
prev parent reply other threads:[~2022-08-02 12:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YukWPuFSATu5TiQv@casper.infradead.org \
--to=willy@infradead.org \
--cc=linux-mm@kvack.org \
--cc=nagaradhesh.yeleswarapu@amd.com \
--cc=vbabka@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).