From: David Hildenbrand <david@redhat.com>
To: Mike Rapoport <rppt@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Andrew Morton <akpm@linux-foundation.org>,
Oscar Salvador <osalvador@suse.de>,
Michal Hocko <mhocko@suse.com>,
Mike Kravetz <mike.kravetz@oracle.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
Matthew Wilcox <willy@infradead.org>,
Anshuman Khandual <anshuman.khandual@arm.com>,
Muchun Song <songmuchun@bytedance.com>,
Pavel Tatashin <pasha.tatashin@soleen.com>,
Jonathan Corbet <corbet@lwn.net>,
Stephen Rothwell <sfr@canb.auug.org.au>,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v1] memory-hotplug.rst: complete admin-guide overhaul
Date: Tue, 8 Jun 2021 17:22:10 +0200 [thread overview]
Message-ID: <ac60f6ba-c0bf-5c8e-7bde-c673b7409835@redhat.com> (raw)
In-Reply-To: <YL97z8DsjQfcAYBX@kernel.org>
Looks like a was too fast with my resend ;)
>>>> -Phases of memory hotplug
>>>> +Further, the basic memory hot(un)plug infrastructure in Linux is nowadays
>>>> +also used to expose PMEM, other performance-differentiated
>>>
>>> ^ persistent memory (PMEM)
>>>
>
> Just in case you've missed this one ^ ;-)
I did catch that :)
[...]
>>
>> "If it fails, an error will be returned by the kernel via the systemcall
>> that triggered modifying of the respective file."
>
> I also think that write(2) to /sys/devices/system/memory/memoryXXX/online
> will fail. But the inner workings of system call, its return value and the
> ERRNO are probably not very interesting to a person that did
>
> echo 0 > /sys/devices/system/memory/memoryXXX/online
>
> Maybe something like
>
> If it fails, the state of the memory block will remain unchanged and the
> above command will fail.
Thanks, I'll use that.
>
> And maybe an example of how echo reports some unrelated error message :)
>
>>>> +Observing the State of Memory Blocks
>
> ...
>
>>>> -Now, a boot option for making a memory block which consists of migratable pages
>>>> -is supported. By specifying "kernelcore=" or "movablecore=" boot option, you can
>>>> -create ZONE_MOVABLE...a zone which is just used for movable pages.
>>>> -(See also Documentation/admin-guide/kernel-parameters.rst)
>>>> + For online memory blocks, ``DMA``, ``DMA32``, ``Normal``,
>>>> + ``Movable`` and ``none`` may be returned. ``none`` indicates
>>>
>>> Highmem? Or we don't support hotplug on 32 bits?
>>
>> We only support 64 bit:
>>
>> config MEMORY_HOTPLUG
>> ...
>> depends on 64BIT || BROKEN
>>
>> Worth a comment in the document "Introduction":
>>
>> "Linux only supports memory hot(un)plug on selected 64 bit architectures,
>> such as x86_64, aarch64, ppc64, s390x and ia64."
>
> ^ arm64 ?
I think aarch64 is historically actually the right(tm) thing to use in
general ... but nowadays it doesn't matter anymore. It's "arch/arm64"
... the inconsistency is real. (interesting read:
https://stackoverflow.com/questions/31851611/differences-between-arm64-and-aarch64)
But it's the same mess as using x86 vs. x86_64 vs. x64 vs. AMD64 for the
64 bit extension of IA-32.
So I'll convert that to arm64.
--
Thanks,
David / dhildenb
next prev parent reply other threads:[~2021-06-08 15:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 10:26 [PATCH v1] memory-hotplug.rst: complete admin-guide overhaul David Hildenbrand
2021-05-26 6:54 ` Mike Rapoport
2021-06-08 12:05 ` David Hildenbrand
2021-06-08 14:16 ` Mike Rapoport
2021-06-08 15:22 ` David Hildenbrand [this message]
2021-06-07 7:51 ` Michal Hocko
2021-06-07 8:08 ` David Hildenbrand
2021-06-07 11:35 ` Mike Rapoport
2021-06-08 13:04 ` David Hildenbrand
2021-06-08 14:18 ` Mike Rapoport
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=ac60f6ba-c0bf-5c8e-7bde-c673b7409835@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=mike.kravetz@oracle.com \
--cc=osalvador@suse.de \
--cc=pasha.tatashin@soleen.com \
--cc=rppt@kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=songmuchun@bytedance.com \
--cc=willy@infradead.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).