Public class IntTask implements void run() I tried that on Amazon EC2 with 8 cores too, but the virtual machine seems to run different from a real box, so the loading behaves totally strange. So our suspicion is that the JVM (Sun JDK 6u20 on Linux 圆4) does not scale well.ĭid anyone see similar things or has the ability to run it and report whether or not it runs well on his/her machine (>= 8 cores only please)? Ideas? Similar things happen with 2 programs each 12 threads or smaller machines. The problem we are facing now is, that we do not get a 24 core machine loaded (AMD 2 sockets with 12 cores each), when running this simple program (with 24 threads of course). Something that runs in registers and not even allocates new memory. So for instance, you start it withĪnd it will start 8 threads that do nothing else than looping and adding 2 to an integer. The attached simple Java code should load all available cpu core when starting it with the right parameters.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |