Re: [PATCH v5 6/6] mem-hotplug: Introduce movablenode boot option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Yanfei Zhang <zhangyanfei.yes@xxxxxxxxx> wrote:

> > Also, more importantly, please explain why this needs to be a boot 
> > option. In terms of user friendliness boot options are at the bottom 
> > of the list, and boot options also don't really help feature tests.
> >
> > Presumably the feature is safe and has no costs, and hence could be 
> > added as a regular .config option, with a boot option only as an 
> > additional configurability option?
> 
> 
> Yeah, the kernel already has config MOVABLE_NODE, which is the config 
> enabing this feature, and we introduce this boot option to expand the 
> configurability.

So if this is purely a boot option to disable CONFIG_MOVABLE_NODE=y then 
this:

> +     movablenode             [KNL,X86] This parameter enables/disables the
> +                     kernel to arrange hotpluggable memory ranges recorded
> +                     in ACPI SRAT(System Resource Affinity Table) as
> +                     ZONE_MOVABLE. And these memory can be hot-removed when
> +                     the system is up.
> +                     By specifying this option, all the hotpluggable memory
> +                     will be in ZONE_MOVABLE, which the kernel cannot use.
> +                     This will cause NUMA performance down. For users who
> +                     care about NUMA performance, just don't use it.
> +                     If all the memory ranges in the system are hotpluggable,
> +                     then the ones used by the kernel at early time, such as
> +                     kernel code and data segments, initrd file and so on,
> +                     won't be set as ZONE_MOVABLE, and won't be hotpluggable.
> +                     Otherwise the kernel won't have enough memory to boot.
> +
>       MTD_Partition=  [MTD]

should be something like:

> +     movablenode     [KNL,X86] Boot-time switch to disable the effects of
> +                     CONFIG_MOVABLE_NODE=y. See mm/Kconfig for details.

And make sure that the description in mm/Kconfig is uptodate.

Having the same feature described twice in two different places will only 
create documentation bitrot and confusion. Also, the boot flag is only 
about disabling the feature, right?

Also, because the feature is named MOVABLE_NODE, the boot option should 
match that and be called movable_node - not movablenode.

Thanks,

	Ingo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]