[spp] [Bug 443] spp primary takes up the complete hugepages

bugzilla at dpdk.org bugzilla at dpdk.org
Thu Apr 23 04:00:59 CEST 2020


https://bugs.dpdk.org/show_bug.cgi?id=443

masahiro nemoto (masahiro.nemoto.es at s1.ntt-tx.co.jp) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |masahiro.nemoto.es at s1.ntt-t
                   |                            |x.co.jp

--- Comment #10 from masahiro nemoto (masahiro.nemoto.es at s1.ntt-tx.co.jp) ---
Hello Vipin,

I tried to re-create the situation you mentioned in your reply.

Before the result I would like to confirm that you pointed out the follwoing
two points.
[Point1]
 Primary: ``` x86_64-native-linuxapp-gcc/spp_primary -l 1-5 -n 4
--socket-mem=100,0 --proc-type=primary -w 0000:08:00.1 -w 0000:08:00.2 -- -p
0x3 -n 10 -s 127.0.0.1:5555 ```

Even if --socket-mem option is specified when invoking primary process, it is
ignored.

[Point2]
By adding new EAL parameter named--socket-limit pamaeter, the situation
changes. 
Total amount of memroy allocation is limited by parameter which is specified
with --socket-limit parameter.

[Result1]
I confiremed Point1 can be re-created in my environment.
sudo ./spp_primary -l 1-2 -n 4 --socket-mem=100,100 --proc-type=primary
--huge-dir=/mnt/huge1G -- -p 0x3 -n 10 -s 127.0.0.1:5555

by invoking above parameter, 1gigabyte per socket are allocated.
As you mentioned parameter value of --socket-mem is IGNORED.

tx_h-yamashita at r740n15:~$ sudo numastat -p spp_

Per-node process memory usage (in MBs)
PID                           Node 0          Node 1           Total
-------------------  --------------- --------------- ---------------
38174 (sudo)                    0.69            6.93            7.61
38175 (spp_primary)          1039.67         1027.32         2067.00
38183 (sudo)                    0.54            6.95            7.48
-------------------  --------------- --------------- ---------------
Total                        1040.89         1041.20         2082.09

[Result2]
sudo ./spp_primary -l 1-2 -n 4 --socket-mem=100,100 --socket-limit=10,10
--proc-type=primary --huge-dir=/mnt/huge1G -- -p 0x3 -n 10 -s 127.0.0.1:5555

With --socket-limit pameter, the situation did NOT change.
Expectation: 10 Mbytes per sockets are allocated.
Result: 1000Mbytes per sockets are allocated.

tx_h-yamashita at r740n15:~$ sudo numastat -p spp_

Per-node process memory usage (in MBs)
PID                           Node 0          Node 1           Total
-------------------  --------------- --------------- ---------------
38187 (sudo)                    0.68            6.95            7.63
38188 (spp_primary)          1039.61         1027.14         2066.75
38198 (sudo)                    0.54            6.75            7.30
-------------------  --------------- --------------- ---------------
Total                        1040.84         1040.84         2081.68

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the spp mailing list