linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Michal Hocko <mhocko@suse.com>
Cc: "Gerald Schaefer" <gerald.schaefer@linux.ibm.com>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>,
	"Greg KH" <gregkh@linuxfoundation.org>,
	"Jan Höppner" <hoeppner@linux.ibm.com>,
	"Heiko Carstens" <hca@linux.ibm.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	linux-api@vger.kernel.org,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Ways to deprecate /sys/devices/system/memory/memoryX/phys_device ?
Date: Fri, 25 Sep 2020 17:47:18 +0200	[thread overview]
Message-ID: <f973e594-fbb5-3c2f-414b-c4dbc9757793@redhat.com> (raw)
In-Reply-To: <20200925153908.GH3389@dhcp22.suse.cz>

>>>> 2. Restrict it to s390x only. It always returned 0 on other
>>>> architectures, I was not able to find any user.
>>>>
>>>> I think 2 should be safe to do (never used on other archs). I do wonder
>>>> what the feelings are about 1.
>>>
>>> Please don't add any s390-specific workarounds here, that does not
>>> really sound like a clean-up, rather the opposite.
>>
>> People seem to have different opinions here. I'm happy as long as we can
>> get rid of it (either now, or in the future with a new model).
>>
>>>
>>> That being said, I do not really see the benefit of this change at
>>> all. As Michal mentioned, there really should be some more fundamental
>>> change. And from the rest of this thread, it also seems that phys_device
>>> usage might not be the biggest issue here.
>>>
>>
>> As I already expressed, I am more of a friend of small, incremental
>> changes than having a single big world switch where everything will be
>> shiny and perfect.
>>
>> (Deprecating it now - in any way - stops any new users from appearing -
>> both, in the kernel and from user space - eventually making the big
>> world switch later a little easier because there is one thing less that
>> vanished)
>
> Realistically people do not care about deprecation all that much. They
> simply use whatever they can find or somebody will show them. Really,
> deprecation has never really worked. The only thing that worked was to
> remove the functionality and then wait for somebody to complain and
> revert or somehow allow the functionality without necessity to alter the
> userspace.

Mainframe people are usually ... more conservative (well, they focus on
stability and pay a lot of money for that - including HW). :)

What they would lose here is s390x lsmem/chmem functionality, used to
manage standby memory (under LPAR and z/VM, if enabled) - with the old
tools. I have the feeling that this would be acceptable (I never had
access to an LPAR that allowed for it ...), but yeah, you never now.

> 
> As much as I would like to remove as much crud as possible I strongly
> suspect that the existing hotplug interface is just a lost case and it
> doesn't make for the best used time to put a lip stick on a pig. Even if
> we remove this particular interface we are not going to get rid of a lot
> of code or we won't gain any more sensible semantic, right?
> 

Excluding some documentation

 drivers/base/memory.c        | 29 -----------------------------
 drivers/s390/char/sclp_cmd.c |  7 -------
 include/linux/memory.h       |  2 --
 3 files changed, 38 deletions(-)

Seems like this is the only way to deprecate. (I mean I can add comments
in the code, but as you say, doesn't stop new user space users from
showing up)

-- 
Thanks,

David / dhildenb


      reply	other threads:[~2020-09-25 15:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-10 10:20 Ways to deprecate /sys/devices/system/memory/memoryX/phys_device ? David Hildenbrand
2020-09-10 20:00 ` Dave Hansen
2020-09-10 20:31   ` David Hildenbrand
2020-09-11  7:20     ` Michal Hocko
2020-09-11  8:09       ` David Hildenbrand
2020-09-11  9:12         ` Michal Hocko
2020-09-11 10:09           ` David Hildenbrand
2020-09-11 19:24             ` Dave Hansen
2020-09-11 19:35               ` Luck, Tony
2020-09-11 19:56                 ` David Hildenbrand
2020-09-11 20:09                   ` Luck, Tony
2020-09-11 20:49                     ` David Hildenbrand
2020-09-14 11:24             ` Michal Hocko
2020-09-14 12:14               ` David Hildenbrand
2020-09-10 20:57 ` Dave Hansen
2020-09-22 13:56 ` Gerald Schaefer
2020-09-25 14:49   ` David Hildenbrand
2020-09-25 15:00     ` Greg KH
2020-09-25 15:05       ` David Hildenbrand
2020-09-25 15:39     ` Michal Hocko
2020-09-25 15:47       ` David Hildenbrand [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=f973e594-fbb5-3c2f-414b-c4dbc9757793@redhat.com \
    --to=david@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=gerald.schaefer@linux.ibm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hca@linux.ibm.com \
    --cc=hoeppner@linux.ibm.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    /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).