From: Roland Dreier <rdreier@cisco.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: ggrundstrom@neteffect.com, ewg@lists.openfabrics.org,
netdev@vger.kernel.org
Subject: Re: [PATCH 3/14] nes: connection manager routines
Date: Thu, 09 Aug 2007 10:37:10 -0700 [thread overview]
Message-ID: <ada1wecobi1.fsf@cisco.com> (raw)
In-Reply-To: <46B9207D.6000905@garzik.org> (Jeff Garzik's message of "Tue, 07 Aug 2007 21:46:37 -0400")
> > +atomic_t cm_connects;
> > +atomic_t cm_accepts;
> > +atomic_t cm_disconnects;
> > +atomic_t cm_closes;
> > +atomic_t cm_connecteds;
> > +atomic_t cm_connect_reqs;
> > +atomic_t cm_rejects;
>
> do you really want to take the hit of a LOCK prefix each time you
> increment a stat???
I think these are once-per-connection things, so the overhead is not
that bad. On the other hand there's probably another lock you have to
take anyway so maybe you can just define that these are protected by
some lock you take anyway.
Also, these names seem kind of generic to be global -- a nes_ prefix
is probably appropriate.
- R.
next prev parent reply other threads:[~2007-08-09 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 0:50 [PATCH 3/14] nes: connection manager routines ggrundstrom
2007-08-08 1:46 ` Jeff Garzik
2007-08-09 17:37 ` Roland Dreier [this message]
2007-08-08 12:41 ` Andi Kleen
2007-08-08 15:31 ` Glenn Grundstrom
2007-08-09 21:06 ` Steve Wise
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=ada1wecobi1.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=ewg@lists.openfabrics.org \
--cc=ggrundstrom@neteffect.com \
--cc=jeff@garzik.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;
as well as URLs for NNTP newsgroup(s).