[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

Thread cache: explanation needed

Ah hello.

Can someone please provide an explanation of/give references to recommended books I can read:

1) What exactly a thread-cache is, and how it differs from a processor cache
2) How we can have "cache misses"
3) This SO answer, specifically the last paragraph about how "locks typically reduce contention".

I have tried googling for this but cannot find anything.

(Hopefully I have chosen the best zones for this, had a bit of a hard time deciding:))

TIA
0
mrwad99
Asked:
mrwad99
  • 3
  • 2
1 Solution
 
jkrCommented:
"thread cache" could actually refer to two things, one solution described here http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.genprogc%2Fdoc%2Fgenprogc%2Fmalloc_threadcache.htm for OS-specific implementations:

The Malloc Thread Cache maintains a per-thread pool of unallocated memory for the purpose of reducing contention for the global heap structures.

This cache attempts to preallocate memory pieces for future use according to the pattern of allocations already performed by the thread. If an allocation request can be serviced using one of the unallocated pieces in the Thread Cache, it is removed from the cache and returned to the caller. If an allocation request cannot be serviced using an unallocated piece in the cache, the request is passed on to the global heap structure.

and the other discussed in the paper at http://www.hpcaconf.org/hpca11/papers/32_chandra-predictinginter-thread.pdf ("Predicting Inter-Thread Cache Contention on a Chip Multi-Processor Architecture", consider this one "suggested reading" ;o)
0
 
mrwad99Author Commented:
Disappointingly few responses on this one!

Thanks for participating.
0
 
mrwad99Author Commented:
Oh, I almost forgot; do you have any comment on the SO question query I linked to?
0
 
jkrCommented:
I wished I could, but as for new EE policy, SO does not exist. But I guess it is safe to say that while there are some truisms in it, it's on point ;o)
0
 
mrwad99Author Commented:
>> new EE policy

Have I missed that?  Could you provide a link with this on at all?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now