From: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: "ira.weiny" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Jason Gunthorpe
<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>,
"roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
<roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"Hefty,
Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] ib_ipoib: Scatter-Gather support in connected mode
Date: Wed, 1 Apr 2015 23:08:45 +0300 [thread overview]
Message-ID: <20150401200844.GE8024@yuval-lab> (raw)
In-Reply-To: <20150401171708.GA21266-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
On Wed, Apr 01, 2015 at 01:17:19PM -0400, ira.weiny wrote:
> On Mon, Mar 23, 2015 at 11:17:49AM -0600, Jason Gunthorpe wrote:
> > On Sun, Mar 22, 2015 at 11:21:50AM +0200, Yuval Shaia wrote:
> > > On Sun, Mar 15, 2015 at 05:16:16PM +0200, Yuval Shaia wrote:
> > > > Hi,
> > > > I didn't got any further comments on this one.
> > > > Any idea why SG in CM is un-welcome?
> > > By mistake I sent a private mail only.
> > > Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> > > Cc: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > > Cc: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> > >
> > > Your advice would be very appreciated.
> >
> > I haven't looked in detail at the patch, but in principle, using S/G
> > when ever possible should be the default, even if this creates a
> > performance regression.
> >
> > It is well known that high order allocations are problematic in Linux
> > and should be avoided, and I also have seen systems blow up because of
> > high order IPoIB allocations.
> >
> > That said, there may be cases where S/G is not possible, you should
> > try and get Mellanox to comment if all their offloads work on all
> > their cards when S/G is used. Work may be required to resolve any of
> > these constraints. I'd like to belive there is some reason why we've
> > been doing high order allocations for so many years.
> >
> > FWIW, I would probably choose to default S/G over any other offload
> > acceleration.
>
> I concur with Jason's assessment.
>
> As Yann asked before:
>
> What hardware have you tested this on? Do you have any performance
> measurements? Or do you have a reproducer for some of the allocation issues
> which have been seen?
Tested on Mellanox MT26428. Have here also CX3, will update if there will be an issue.
No impact on performances.
I did not try to reproduce the issue but people that do got this dump:
pr 7 09:33:30 dbnode kernel: Call Trace:
Apr 7 09:33:30 dbnode kernel: [<ffffffff810ddf74>] __alloc_pages_nodemask+0x524/0x595
Apr 7 09:33:30 dbnode kernel: [<ffffffff8110da3f>] kmem_getpages+0x4f/0xf4
Apr 7 09:33:30 dbnode kernel: [<ffffffff8110dc12>] fallback_alloc+0x12e/0x1ce
Apr 7 09:33:30 dbnode kernel: [<ffffffff8110ddd3>] ____cache_alloc_node+0x121/0x134
Apr 7 09:33:30 dbnode kernel: [<ffffffff8110e3f3>] kmem_cache_alloc_node_notrace+0x84/0xb9
Apr 7 09:33:30 dbnode kernel: [<ffffffff8110e46e>] __kmalloc_node+0x46/0x73
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b9aa8>] ? __alloc_skb+0x72/0x13d
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b9aa8>] __alloc_skb+0x72/0x13d
Apr 7 09:33:30 dbnode kernel: [<ffffffff813f2364>] sk_stream_alloc_skb+0x3d/0xaf
Apr 7 09:33:30 dbnode kernel: [<ffffffff813f35b5>] tcp_sendmsg+0x176/0x6cf
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b0d5f>] __sock_sendmsg+0x5e/0x67
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b1644>] sock_sendmsg+0xcc/0xe5
Apr 7 09:33:30 dbnode kernel: [<ffffffff810b4d09>] ? delayacct_end+0x7d/0x88
Apr 7 09:33:30 dbnode kernel: [<ffffffff8104a3b0>] ? delayacct_blkio_end+0x26/0x40
Apr 7 09:33:30 dbnode kernel: [<ffffffff81077030>] ? autoremove_wake_function+0x0/0x3d
Apr 7 09:33:30 dbnode kernel: [<ffffffff81456f1d>] ? __wait_on_bit+0x6c/0x7c
Apr 7 09:33:30 dbnode kernel: [<ffffffff810d7b70>] ? sync_page+0x0/0x4d
Apr 7 09:33:30 dbnode kernel: [<ffffffff8111656e>] ? __pfn_to_section+0x12/0x14
Apr 7 09:33:30 dbnode kernel: [<ffffffff811165a2>] ? lookup_page_cgroup+0x32/0x48
Apr 7 09:33:30 dbnode kernel: [<ffffffff81100a61>] ? swap_entry_free+0x7a/0xf3
Apr 7 09:33:30 dbnode kernel: [<ffffffff8111c239>] ? fget_light+0x34/0x73
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b0fcb>] ? sockfd_lookup_light+0x20/0x58
Apr 7 09:33:30 dbnode kernel: [<ffffffff813b22cf>] sys_sendto+0x12f/0x171
Apr 7 09:33:30 dbnode kernel: [<ffffffff810a9d23>] ? audit_syscall_entry+0x103/0x12f
Apr 7 09:33:30 dbnode kernel: [<ffffffff81011db2>] system_call_fastpath+0x16/0x1b
>
> I can't comment on how this may affect Mellanox Hardware but it seems like it
> will work fine with Qib hardware.
>
> Ira
>
>
> >
> > Jason
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-01 20:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 11:21 [PATCH] ib_ipoib: Scatter-Gather support in connected mode Yuval Shaia
[not found] ` <1422357682-8934-1-git-send-email-yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2015-01-28 11:36 ` Yann Droneaud
[not found] ` <1422444987.3133.81.camel-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
2015-02-01 7:09 ` Yuval Shaia
[not found] ` <20150315151616.GA3546@yuval-lab>
2015-03-22 9:21 ` Yuval Shaia
2015-03-23 17:17 ` Jason Gunthorpe
[not found] ` <20150323171749.GA3580-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-04-01 17:17 ` ira.weiny
[not found] ` <20150401171708.GA21266-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2015-04-01 20:08 ` Yuval Shaia [this message]
2015-05-05 12:23 ` Yuval Shaia
2015-04-01 20:33 ` Yuval Shaia
2015-05-07 14:45 ` Doug Ledford
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=20150401200844.GE8024@yuval-lab \
--to=yuval.shaia-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sean.hefty-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox