[pve-devel] [PATCH] memory hotplug patch v6
Alexandre DERUMIER
aderumier at odiso.com
Wed Jan 21 08:35:58 CET 2015
>>Assuming that each socket defines a separate NUMA node? I thought
>>we can do:
>>
>>$node = $i % $number_of_numa_nodes;
Yes ;) (sorry, don't have sleep too much ;)
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "Daniel Hunsaker" <danhunsaker at gmail.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 21 Janvier 2015 08:24:23
Objet: Re: [pve-devel] [PATCH] memory hotplug patch v6
> I think we can also add numa nodes in the mapping,
> like this;
>
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
>
> my $dimm_id = 0;
> my $current_size = 0;
> my $dimm_size = 128;
> my $sockets = 4;
>
> my $node = 0;
>
> for (my $j = 0; $j < 16; $j++) {
> for (my $i = 0; $i < 16; $i++) {
> my $name = "dimm${dimm_id}";
> $dimm_id++;
> $current_size += $dimm_size;
> my $per = (100*$dimm_size)/$current_size;
> if($node < $sockets-1) {
> $node++;
> }else {
> $node = 0;
> }
> printf ("%10s %10d %10d %10.2f %d\n", $name, $dimm_size,
> $current_size, $per, $node);
> }
> $dimm_size *= 2;
> }
Assuming that each socket defines a separate NUMA node? I thought
we can do:
$node = $i % $number_of_numa_nodes;
More information about the pve-devel
mailing list