Ramine <ramine@1.1>: Jun 22 03:38AM -0700 Hello... I think that my windows Object Pascal Processor Groups unit is optimal on NUMA systems, because as you will notice in the source code , i am assigning the mask and the group in a round-robin fashion so that it distributes NUMA nodes efficiently on threads, so it makes the threads run optimally on NUMA systems, please read the following from Microsoft as a confirmation of what i am saying about NUMA nodes: "Each node must be fully contained within a group. If the capacities of the nodes are relatively small, the system assigns more than one node to the same group, choosing nodes that are physically close to one another for better performance. If a node's capacity exceeds the maximum number of processors in a group, the system splits the node into multiple smaller nodes, each small enough to fit in a group." Read here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363804(v=vs.85).aspx So as you have noticed Microsoft is using algorithms that optimize efficiently. So if you read the following about gabr: http://www.thedelphigeek.com/ As you have noticed he is using a function called RunInNUMANode(), look here: https://docs.google.com/document/d/1dHiJyHj80TJ2oFAOtFxNtXLMrAhzm7F5SoczBl5ssxM/edit# But i don't think i need this function because my Object Pascal unit is optimal i think, as i have just explained to you. You will find my Object Pascal unit called ProcessorGroups.pas inside the following zip file that you can download from here: https://sites.google.com/site/aminer68/an-efficient-threadpool-engine-that-scales-well Look at the test2.pas example to know how to use it. Thank you, Amine Moulay Ramdane. |
bleachbot <bleachbot@httrack.com>: Jun 22 09:28PM +0200 |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com. |
No comments:
Post a Comment