All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Didier Pallard <didier.pallard-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH v2] eal: change default per socket memory allocation
Date: Wed, 14 May 2014 11:15:34 +0200	[thread overview]
Message-ID: <4867043.OXANNGufED@xps13> (raw)
In-Reply-To: <1FD9B82B8BF2CF418D9A1000154491D9740AADF4-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>

> 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), and dpdk is
> requesting only 4GB of memory, all memory will be taken in socket 0 (that
> have exactly 4GB of free hugepages) even if some cores are configured on
> socket 1, and there are free hugepages on socket 1... 
> Change this behaviour to allocate memory on all sockets where some cores are
> configured, spreading the memory amongst sockets using following ratio per
> socket:
> N° of cores configured on the socket / Total number of configured
> cores * requested memory
> 
> This algorithm is used when memory amount is specified globally using -m
> option. Per socket memory allocation can always be done using --socket-mem
> option.
 
> Changes included in v2:
> - only update linux implementation as bsd looks not to be ready for numa
> - if new algorithm fails, then defaults to previous behaviour
> 
> Signed-off-by: Didier Pallard <didier.pallard-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
> Signed-off-by: David Marchand <david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
> 
> Acked-by: Venky Venkatesan <Venky.venkatesan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Applied for version 1.7.0.

Thanks
-- 
Thomas

      parent reply	other threads:[~2014-05-14  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-09 13:30 [PATCH v2] eal: change default per socket memory allocation David Marchand
     [not found] ` <1399642242-19725-1-git-send-email-david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-13 16:27   ` Thomas Monjalon
2014-05-13 16:33   ` Venkatesan, Venky
     [not found]     ` <1FD9B82B8BF2CF418D9A1000154491D9740AADF4-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-14  9:15       ` Thomas Monjalon [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=4867043.OXANNGufED@xps13 \
    --to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=didier.pallard-pdR9zngts4EAvxtiuMwx3w@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.