Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298172
| Path | csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ming Lei <tom.leiming@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock |
| Date | Sat, 26 Dec 2015 10:00:03 +0100 |
| Message-ID | <qJSRI-77i-5@gated-at.bofh.it> (permalink) |
| References | <qFVXQ-3nl-15@gated-at.bofh.it> <qFVXQ-3nl-13@gated-at.bofh.it> <qG6Jz-1XE-1@gated-at.bofh.it> <qGatQ-4jI-5@gated-at.bofh.it> <qGee6-6Mq-7@gated-at.bofh.it> <qGee6-6Mq-5@gated-at.bofh.it> <qGWI9-1Xj-1@gated-at.bofh.it> |
| X-Original-To | Alexei Starovoitov <alexei.starovoitov@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=znuxah9EOeuLO7UoPDWzj9a+jR5j8swmYoVX2kPt3yQ=; b=VKvFyn9J8ntzC9NFcO1T1dPohUIOw6FU2LT7UN2RtYKKT8QiCbWH7yYI4q1R1Iu59u sTcYJVIQtPVjygGQpLflv+IGIDudGd7+4X9XVBk4mmqUsezCYKwsbEHgzrqhnOoAGqw9 w7z0k80gikX16lZ1HvrOK9oDlHR4EENzp9iAWQL0tq/hN6e5nGN47hTYofOQ7ewupjki gr6CR0fYyxK+GDhUcaks9V0lh7GwMvjGtEoU7cRR6G0X9rjWhRCLSIxCH378L29O8Md+ 486sIPhBAgaqR56rvnRzBcpfgt3O1F2i9PatoT3p2LUtFcf2XcC97l0MdNml2ZgFiGid IYYQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.62.242 with SMTP id b18mr39956242igs.30.1451120325274; Sat, 26 Dec 2015 00:58:45 -0800 (PST) |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Yang Shi <shy828301@gmail.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Alexei Starovoitov <ast@kernel.org>, "David S. Miller" <davem@davemloft.net>, Network Development <netdev@vger.kernel.org>, Steven Rostedt <rostedt@goodmis.org> |
| X-Original-Date | Sat, 26 Dec 2015 16:58:45 +0800 |
| X-Original-Message-ID | <CACVXFVNgkvuhVKo2PMbh2LM4t-A+r+Q+VLVnLe6XRsbeWRoCjw@mail.gmail.com> |
| X-Original-References | <1450178464-27721-1-git-send-email-tom.leiming@gmail.com> <1450178464-27721-5-git-send-email-tom.leiming@gmail.com> <20151215225118.GA67370@ast-mbp.thefacebook.com> <CACVXFVMaRPSHCEi9BpA1R9FnQFhUODc6UVonE_SjiytmL2WAXQ@mail.gmail.com> <CAHbLzkpW_seTrs+WgFqsriH5uhG4LMY_jiYC0iRQ-LAdJFiUjw@mail.gmail.com> <CACVXFVOeh0D+Nf8AVw68-e-aSYtVVLiRoUoDCi89zYXXiUm4gA@mail.gmail.com> <20151218062043.GB59584@ast-mbp.thefacebook.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1298172 |
Show key headers only | View raw
On Fri, Dec 18, 2015 at 2:20 PM, Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote: > On Wed, Dec 16, 2015 at 02:58:08PM +0800, Ming Lei wrote: >> On Wed, Dec 16, 2015 at 1:01 PM, Yang Shi <shy828301@gmail.com> wrote: >> >> > >> > I recalled Steven confirmed raw_spin_lock has the lockdep benefit too in the >> > patch review for changing to raw lock. >> > >> > Please check this thread out >> > http://lists.openwall.net/netdev/2015/10/31/7 >> >> OK, looks I was wrong about the lockdep benifit, :-( >> >> But for this lock, I think lockdep isn't such important, because it is the >> intermost lock, and it can be used just for protecting the bucket list >> and nothing else need to be covered. > > I still think that overhead of normal spinlock per bucket is acceptable. > Makes the whole thing much easier to read. OK, let's use per-bucket spinlock first. -- Ming Lei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Ming Lei <tom.leiming@gmail.com> - 2015-12-15 12:30 +0100
Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2015-12-16 00:00 +0100
Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Ming Lei <tom.leiming@gmail.com> - 2015-12-16 04:00 +0100
Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Ming Lei <tom.leiming@gmail.com> - 2015-12-16 08:00 +0100
Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2015-12-18 07:30 +0100
Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock Ming Lei <tom.leiming@gmail.com> - 2015-12-26 10:00 +0100
csiph-web