All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Marchand <david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: "Venkatesan,
	Venky" <venky.venkatesan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "dev-VfR2kkLFssw@public.gmane.org" <dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: [PATCH RFC] eal: change default per socket memory allocation
Date: Mon, 5 May 2014 11:26:09 +0200	[thread overview]
Message-ID: <CALwxeUv88gGzi8PL-QvH3ZiiArfcYb_Xvmf=cGGEsqPhrGbb+w@mail.gmail.com> (raw)
In-Reply-To: <1FD9B82B8BF2CF418D9A1000154491D97409DBDD-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>

Hello Venky, Anatoly,

On Fri, May 2, 2014 at 11:05 AM, Venkatesan, Venky <
venky.venkatesan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:

> Agree with Anatoly - I would much rather not change legacy option
> behaviour that has existed for a while, especially when --socket-mem is
> available to do exactly what is needed.
>
> -Venky
>
> -----Original Message-----
> From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Burakov, Anatoly
> Sent: Friday, May 02, 2014 1:54 AM
> To: Burakov, Anatoly; David Marchand; dev-VfR2kkLFssw@public.gmane.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 the user doesn't care, there's -m
> option, which gives the user memory from whatever sockets it is available.
> With this change applied, DPDK will fail when run with -m switch under
> certain circumstances (e.g. cores from socket 0 present in the coremask but
> no memory left on socket 0), which is quite the opposite of a simple "give
> me n megs, I don't care where it comes from" option -m is providing.
>
>
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 socket but still expect performance to be good.

So here is another approach for Didier's patch.
We can try to spread memory on numa sockets, if this fails, then we default
to previous behavior but leave a trace with a warning log "Could not spread
memory on numa sockets".

What do you think about this ?


I would also take into account Anatoly's comments (multi line comments +
ensure we won't try to get more memory than asked by user).

-- 
David Marchand

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

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-30 14:15 [PATCH RFC] eal: change default per socket memory allocation David Marchand
     [not found] ` <1398867304-21171-1-git-send-email-david.marchand-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-01 16:06   ` Burakov, Anatoly
     [not found]     ` <C6ECDF3AB251BE4894318F4E45123697592AAF93-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-02  8:54       ` Burakov, Anatoly
     [not found]         ` <C6ECDF3AB251BE4894318F4E45123697592AB0F9-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-02  9:05           ` Venkatesan, Venky
     [not found]             ` <1FD9B82B8BF2CF418D9A1000154491D97409DBDD-P5GAC/sN6hlcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-05  9:26               ` David Marchand [this message]
     [not found]                 ` <CALwxeUv88gGzi8PL-QvH3ZiiArfcYb_Xvmf=cGGEsqPhrGbb+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-06 10:05                   ` Burakov, Anatoly
     [not found]                     ` <C6ECDF3AB251BE4894318F4E45123697592AB67A-kPTMFJFq+rF9qrmMLTLiibfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-06 15:18                       ` Thomas Monjalon
2014-05-06 15:56                         ` Burakov, Anatoly
2014-05-07 14:56                   ` Venkatesan, Venky

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='CALwxeUv88gGzi8PL-QvH3ZiiArfcYb_Xvmf=cGGEsqPhrGbb+w@mail.gmail.com' \
    --to=david.marchand-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=venky.venkatesan-ral2JQCrhuEAvxtiuMwx3w@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.