From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: Re: [PATCH 8/8] net: Implement socketat. Date: Thu, 23 Sep 2010 16:34:37 +0400 Message-ID: <4C9B495D.70200@parallels.com> References: <4C9B162E.7040201@parallels.com> <1285240797.5036.5.camel@bigi> <4C9B3B06.900@parallels.com> <1285242055.5036.9.camel@bigi> <4C9B3F9C.8080506@parallels.com> <1285243881.5036.22.camel@bigi> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1285243881.5036.22.camel@bigi> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: hadi-fAAogVwAN2Kw5LPnMra/2Q@public.gmane.org, "Eric W. Biederman" Cc: Sukadev Bhattiprolu , Jonathan Corbet , Ulrich Drepper , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jan Engelhardt , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netfilter-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michael Kerrisk , Linux Containers , Ben Greear , Linus Torvalds , David Miller , Al Viro List-Id: containers.vger.kernel.org On 09/23/2010 04:11 PM, jamal wrote: > On Thu, 2010-09-23 at 15:53 +0400, Pavel Emelyanov wrote: > >> Why does it matter? You told, that the usage scenario was to >> add routes to container. If I do 2 syscalls instead of 1, is >> it THAT worse? >> > > Anything to do with socket IO that requires namespace awareness > applies for usage; it could be tcp/udp/etc socket. If it doesnt > make any difference performance wise using one scheme vs other > to write/read heavy messages then i dont see an issue and socketat > is redundant. That's what my point is about - unless we know why would we need it we don't need it. Eric, please clarify, what is the need in creating a socket in foreign net namespace? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755236Ab0IWMfc (ORCPT ); Thu, 23 Sep 2010 08:35:32 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:48027 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755214Ab0IWMf3 (ORCPT ); Thu, 23 Sep 2010 08:35:29 -0400 Message-ID: <4C9B495D.70200@parallels.com> Date: Thu, 23 Sep 2010 16:34:37 +0400 From: Pavel Emelyanov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100720 Fedora/3.0.6-1.fc12 Thunderbird/3.0.6 MIME-Version: 1.0 To: hadi@cyberus.ca, "Eric W. Biederman" CC: linux-kernel@vger.kernel.org, Linux Containers , netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Daniel Lezcano , Linus Torvalds , Michael Kerrisk , Ulrich Drepper , Al Viro , David Miller , "Serge E. Hallyn" , Ben Greear , Matt Helsley , Jonathan Corbet , Sukadev Bhattiprolu , Jan Engelhardt , Patrick McHardy Subject: Re: [PATCH 8/8] net: Implement socketat. References: <4C9B162E.7040201@parallels.com> <1285240797.5036.5.camel@bigi> <4C9B3B06.900@parallels.com> <1285242055.5036.9.camel@bigi> <4C9B3F9C.8080506@parallels.com> <1285243881.5036.22.camel@bigi> In-Reply-To: <1285243881.5036.22.camel@bigi> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/23/2010 04:11 PM, jamal wrote: > On Thu, 2010-09-23 at 15:53 +0400, Pavel Emelyanov wrote: > >> Why does it matter? You told, that the usage scenario was to >> add routes to container. If I do 2 syscalls instead of 1, is >> it THAT worse? >> > > Anything to do with socket IO that requires namespace awareness > applies for usage; it could be tcp/udp/etc socket. If it doesnt > make any difference performance wise using one scheme vs other > to write/read heavy messages then i dont see an issue and socketat > is redundant. That's what my point is about - unless we know why would we need it we don't need it. Eric, please clarify, what is the need in creating a socket in foreign net namespace?