[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-07 Thread Venkatesan, Venky
dev at dpdk.org> Subject: Re: [dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation Sorry for spamming, but now that I think of it, I don't believe this change makes much sense. If the user wants memory on specific sockets, there's already --socket-mem option. If th

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-06 Thread Thomas Monjalon
2014-05-06 10:05, Burakov, Anatoly: > David Marchand: > > Actually, if we don't care where memory is allocated, we can at least try > > to have the more common setup work properly (i.e. spread memory > > allocations based on used cores). > > I can see no usual setup where you > > want to use cores

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-06 Thread Burakov, Anatoly
Hi Thomas, > Having --socket-mem option to explicitly configure NUMA is OK. > Having -m option for simple configuration is OK. Exactly. No explicit requirements - use -m option. Explicit socket requirements - use --socket-mem option. > So I don't understand why we shouldn't do this enhancement.

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-06 Thread Burakov, Anatoly
Hi David, > Actually, if we don't care where memory is allocated, we can at least try to > have the more common setup work properly (i.e. spread memory allocations > based on used cores). > I can see no usual setup where you want to use cores on a socket while having > all memory on another soc

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-05 Thread David Marchand
what is needed. > > -Venky > > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Burakov, Anatoly > Sent: Friday, May 02, 2014 1:54 AM > To: Burakov, Anatoly; David Marchand; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH RFC] eal: change

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-02 Thread Venkatesan, Venky
: Friday, May 02, 2014 1:54 AM To: Burakov, Anatoly; David Marchand; dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation Hi again David/Didier, > Can I suggest to do an RTE_MAX between (internal_config.memory - > total_mem) and (internal_config.

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-02 Thread Burakov, Anatoly
Hi again David/Didier, > Can I suggest to do an RTE_MAX between (internal_config.memory - > total_mem) and (internal_config.memory * cpu_per_socket[socket_id] + > rte_lcore_count() - 1) / rte_lcore_count() ? I don't think it's a good idea > to go > over the requested amount. Let the last core hav

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-05-01 Thread Burakov, Anatoly
Hi David, Didier, > + /* Set memory amount per socket; round up to be sure that > sum of all */ > + /* sockets allocation is greater than requested memory size > */ > + for (socket_id=0 ; socket_id socket_id++) { > + internal_config.socket_me

[dpdk-dev] [PATCH RFC] eal: change default per socket memory allocation

2014-04-30 Thread David Marchand
From: Didier Pallard Currently, if there is more memory in hugepages than the amount requested by dpdk application, the memory is allocated by taking as much memory as possible from each socket, starting from first one. For example if a system is configured with 8 GB in 2 sockets (4 GB per socket