Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*atomic_dec_and_test\s+for\s+child\s+dst\s+needed\s+in\s+dst_destroy\?\s*$/: 48 ]

Total 48 documents matching your query.

21. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 15:48:31 +1000
This is wrong. The barrier needs to be after the atomic_read. Please see my patch to Dave. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxx
/archives/netdev/2005-04/msg00394.html (11,943 bytes)

22. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Fri, 8 Apr 2005 08:05:00 -0700 (PDT)
Ok. How does one get onto the netdev list? The personal cc's of my mail to you also always bounces with admin prohibition.
/archives/netdev/2005-04/msg00399.html (10,840 bytes)

23. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 9 Apr 2005 07:45:29 +1000
echo subscribe netdev | mail majordomo@xxxxxxxxxxx Strange. I'm getting your direct emails just fine. In fact I'm replying to it now. Anyway, here is my last patch again. Cheers, -- Visit Openswan at
/archives/netdev/2005-04/msg00408.html (12,006 bytes)

24. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Sat, 9 Apr 2005 08:28:13 -0700 (PDT)
And here is my fixed up one: Index: linux-2.6.11/net/core/dst.c == -- linux-2.6.11.orig/net/core/dst.c 2005-03-01 23:38:12.000000000 -0800 +++ linux-2.6.11/net/core/dst.c 2005-04-09 08:25:13.00000000
/archives/netdev/2005-04/msg00426.html (13,643 bytes)

25. atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Tue, 5 Apr 2005 11:55:45 -0700 (PDT)
It seems that the atomic_dec_and_test for the child dst in net/core/dst.c is really not needed since dst_destroy cannot be called simultanously for the same dst (frees dst unconditionally via kmem_ca
/archives/netdev/2005-04/msg01390.html (9,812 bytes)

26. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 12:34:38 -0700
Otimizing big SGI NUM systems again, are you? :-) atomic_dec() has no memory ordering guarentees, only the atomic routines returning values do the proper SMP memory barriers. So, based upon this alon
/archives/netdev/2005-04/msg01392.html (9,498 bytes)

27. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Tue, 5 Apr 2005 12:47:09 -0700 (PDT)
Correct that applies in general. But what could go wrong if the atomic_dec is separated from the atomic_read in this specific location? I fail to see what the point of having a single instance of ato
/archives/netdev/2005-04/msg01393.html (10,224 bytes)

28. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 12:50:14 -0700
If this is true, what performance improvement could you possibly be seeing from this change? I know you are making this change for performance reasons, yet you aren't mentioning any details about thi
/archives/netdev/2005-04/msg01395.html (10,509 bytes)

29. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Tue, 5 Apr 2005 12:58:15 -0700 (PDT)
We could make refcnt into an array of pointers that point to node specific memory. This avoids cache line bouncing. However, you cannot atomically dec_and_test an array. This is the only location whe
/archives/netdev/2005-04/msg01398.html (11,263 bytes)

30. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 13:12:59 -0700
The dst object is already too large. You have to show a serious performance improvement to justify bloating it up further. Then we lose the optimizations of those memory barriers that platforms do in
/archives/netdev/2005-04/msg01400.html (11,599 bytes)

31. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 06 Apr 2005 07:45:06 +1000
This is racy (albeit very unlikely) because dst may be freed by dst_run_gc after the atomic_dec. When we are not the real parent of the dst (e.g., when we're xfrm_dst and the child is an rtentry), it
/archives/netdev/2005-04/msg01406.html (12,390 bytes)

32. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 14:48:53 -0700
Good catch Herbert, I'll apply this.
/archives/netdev/2005-04/msg01407.html (10,515 bytes)

33. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Tue, 5 Apr 2005 15:14:26 -0700 (PDT)
If that is so then it is also possible that the gc frees after atomic_dec_and_test: cpu0 dst_destroy cpu1 dst_run_gc atomic_dec_and_test(refcnt) if (atomic_read(refcnt)) ... .. dst_destroy(dst) kmem_
/archives/netdev/2005-04/msg01408.html (10,739 bytes)

34. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 06 Apr 2005 12:19:12 +1000
No this is prevented by the nohash check. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP
/archives/netdev/2005-04/msg01412.html (10,887 bytes)

35. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Tue, 5 Apr 2005 20:19:55 -0700 (PDT)
Ok then the purpose of this whole thing is to decrement the usage counter and at the same time figure out if this is the last child on an unhashed entry. That unhashed entry is not handled by the gar
/archives/netdev/2005-04/msg01415.html (11,011 bytes)

36. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 06 Apr 2005 18:32:54 +1000
Yep you're totally correct. In fact, the atomic_dec_and_test is really only needed for unhashed entries (i.e., IPsec). So we could do something like this so that all hashed entries undergo atomic_dec
/archives/netdev/2005-04/msg01421.html (12,830 bytes)

37. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Wed, 6 Apr 2005 11:17:21 -0700
See his other emails in this thread. If it can be converted to atomic_dec() then he wants to change the counter into an array of counters on NUMA systems. But his trick only works if the atomic_dec_a
/archives/netdev/2005-04/msg01442.html (11,369 bytes)

38. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Wed, 6 Apr 2005 11:48:50 -0700 (PDT)
Correct. Some changes to the way locking is done between the garbage collector and dst_destroy would be necessary. Lets see if the author of the patch can come up with a solution to this.
/archives/netdev/2005-04/msg01445.html (11,280 bytes)

39. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Apr 2005 21:07:24 +1000
OK I've thought more about this and indeed it is possible to get rid of atomic_dec_and_test. As you can see from my previous patch, it is possible to restrict the use of atomic_dec_and_test to the NO
/archives/netdev/2005-04/msg01461.html (12,622 bytes)

40. Re: atomic_dec_and_test for child dst needed in dst_destroy? (score: 1)
Author: Christoph Lameter <christoph@xxxxxxxxxxx>
Date: Thu, 7 Apr 2005 09:00:51 -0700 (PDT)
In an earlier email you said that there was a slight chance that child entries (typically NOHASH from what I can see in the code) could be on the gc list. If its not on the hash table and not on the
/archives/netdev/2005-04/msg01473.html (12,328 bytes)


This search system is powered by Namazu