mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Masatake YAMATO <yamato@redhat.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 01/15] net: proc entry showing inodes on sockfs and their types
Date: Sun, 12 Aug 2012 15:44:16 +0900 (JST)	[thread overview]
Message-ID: <20120812.154416.1611788053634506933.yamato@redhat.com> (raw)
In-Reply-To: <20120811.210434.961670950702666620.davem@davemloft.net>

> 
> Sorry, you cannot do this.
> 
> You are adding a new lock and insert into a global list for
> pretty much every socket created, that will destroy performance.

I think there are no serious performance penalty in generally use.
Most frequently used types of sockets like tcp, udp, and unix are not
stored to the global list and don't touch the new lock at all.
Please, look at has_own_proc_entry in struct proto.

> You also cannnot add new fields to socket listing procfs files,
> it will break existing application which depend upon the existing
> exact layout of those fields.

Is there any strcut which can be extended? 
Extending struct sock is o.k.?

Masatake YAMATO

  reply	other threads:[~2012-08-12  6:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11 20:07 Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 02/15] ipv4: declaring udp protocols has its own proc entry Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 03/15] ipv4: declaring icmp " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 04/15] ipv4: declaring udplite " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 05/15] ipv4: declaring raw " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 06/15] ipv4: declaring tcp " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 07/15] packet: declaring packet " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 08/15] unix: declaring unix " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 09/15] netlink: declaring netlink " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 10/15] ipv6: declaring tcpv6 " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 11/15] ipv6: declaring udpv6 " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 12/15] ipv6: declaring udplitev6 " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 13/15] ipv6: declaring rawv6 " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 14/15] ax25: declaring ax25 " Masatake YAMATO
2012-08-11 20:07 ` [PATCH v2 15/15] ipx: declaring ipx " Masatake YAMATO
2012-08-12  4:04 ` [PATCH v2 01/15] net: proc entry showing inodes on sockfs and their types David Miller
2012-08-12  6:44   ` Masatake YAMATO [this message]
2012-08-12  4:05 ` David Miller

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=20120812.154416.1611788053634506933.yamato@redhat.com \
    --to=yamato@redhat.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.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

all inboxes | Powered by JetHome®