Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Alexei Starovoitov
On Tue, Mar 08, 2016 at 03:31:10PM -0500, David Miller wrote: ... > > Patch 10: stress test for hash map infra. It attaches to spin_lock > > functions and bpf_map_update/delete are called from different contexts > > Patch 11: stress for bpf_get_stackid > > Patch 12: map performance test > > > >

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Alexei Starovoitov
On Tue, Mar 08, 2016 at 03:31:10PM -0500, David Miller wrote: ... > > Patch 10: stress test for hash map infra. It attaches to spin_lock > > functions and bpf_map_update/delete are called from different contexts > > Patch 11: stress for bpf_get_stackid > > Patch 12: map performance test > > > >

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread David Miller
From: Alexei Starovoitov Date: Mon, 7 Mar 2016 21:57:12 -0800 > v1->v2: > . fix few issues spotted by Daniel > . converted stackmap into pre-allocation as well > . added a workaround for lockdep false positive > . added pcpu_freelist_populate to be used by hashmap and stackmap > >

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread David Miller
From: Alexei Starovoitov Date: Mon, 7 Mar 2016 21:57:12 -0800 > v1->v2: > . fix few issues spotted by Daniel > . converted stackmap into pre-allocation as well > . added a workaround for lockdep false positive > . added pcpu_freelist_populate to be used by hashmap and stackmap > > this path set

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Alexei Starovoitov
On 3/8/16 1:13 AM, Daniel Wagner wrote: Some time back Daniel Wagner reported crashes when bpf hash map is >used to compute time intervals between preempt_disable->preempt_enable >and recently Tom Zanussi reported a dead lock in iovisor/bcc/funccount >tool if it's used to count the number of

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Alexei Starovoitov
On 3/8/16 1:13 AM, Daniel Wagner wrote: Some time back Daniel Wagner reported crashes when bpf hash map is >used to compute time intervals between preempt_disable->preempt_enable >and recently Tom Zanussi reported a dead lock in iovisor/bcc/funccount >tool if it's used to count the number of

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Daniel Wagner
Hi Alexei, On 03/08/2016 06:57 AM, Alexei Starovoitov wrote: > v1->v2: > . fix few issues spotted by Daniel > . converted stackmap into pre-allocation as well > . added a workaround for lockdep false positive > . added pcpu_freelist_populate to be used by hashmap and stackmap > > this path set

Re: [PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-08 Thread Daniel Wagner
Hi Alexei, On 03/08/2016 06:57 AM, Alexei Starovoitov wrote: > v1->v2: > . fix few issues spotted by Daniel > . converted stackmap into pre-allocation as well > . added a workaround for lockdep false positive > . added pcpu_freelist_populate to be used by hashmap and stackmap > > this path set

[PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-07 Thread Alexei Starovoitov
v1->v2: . fix few issues spotted by Daniel . converted stackmap into pre-allocation as well . added a workaround for lockdep false positive . added pcpu_freelist_populate to be used by hashmap and stackmap this path set switches bpf hash map to use pre-allocation by default and introduces

[PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-07 Thread Alexei Starovoitov
v1->v2: . fix few issues spotted by Daniel . converted stackmap into pre-allocation as well . added a workaround for lockdep false positive . added pcpu_freelist_populate to be used by hashmap and stackmap this path set switches bpf hash map to use pre-allocation by default and introduces