flat assembler
Message board for the users of flat assembler.
Index
> Windows > Disable SMT for my process? Goto page 1, 2, 3, 4, 5, 6, 7 Next |
Author |
|
LocoDelAssembly 31 Aug 2009, 18:25
in BIOS just disable HT. But note that some Pentium4 and Core i7 are the ones supporting this. If I remember right no Core/Core 2 support HT.
|
|||
31 Aug 2009, 18:25 |
|
Azu 31 Aug 2009, 18:29
Aww.. so there is no way to do it per process? I've been thinking of getting an i7 but I think HT is going to be bad for my program.. but I don't want to disable it for everything.. :/
P.S. HT and SMT are the same right? Just different names? |
|||
31 Aug 2009, 18:29 |
|
LocoDelAssembly 31 Aug 2009, 18:41
http://en.wikipedia.org/wiki/Simultaneous_multithreading
However, perhaps a more generally speaking it is about implementing this using physical cores too, in which case you could set the affinity mask of the process to just one of them. I don't know if it is possible to set the affinity mask to only one logical processor per core. |
|||
31 Aug 2009, 18:41 |
|
Azu 31 Aug 2009, 18:47
Would I just set it using the affinity mask thing in taskman? Like uncheck every-other one? Or do you mean something else?
|
|||
31 Aug 2009, 18:47 |
|
LocoDelAssembly 31 Aug 2009, 18:52
http://msdn.microsoft.com/en-us/library/ms686223%28VS.85%29.aspx (hey, now firefox automatically converted (VS.85) into %28VS.85%29)
It is very likely you'll have to ignore the first community content. |
|||
31 Aug 2009, 18:52 |
|
Azu 31 Aug 2009, 18:56
Thanks
|
|||
31 Aug 2009, 18:56 |
|
f0dder 02 Sep 2009, 05:23
Benchmark.
There's supposedly a big difference between P4 and i7 SMT performance - and even on P4 you could get a speed boost if you knew what you were doing. Also, if you benchmark and find that i7 SMT slows you down, you can use CPUID to query about the cpu structure and use affinity mask to only run on non-SMT cores (dunno if there's any API calls to do the querying). |
|||
02 Sep 2009, 05:23 |
|
LocoDelAssembly 02 Sep 2009, 07:21
f0dder, but how could you get "non-SMT cores"? The best you can do would be selecting the "left" or "right" logical core from each physical core.
|
|||
02 Sep 2009, 07:21 |
|
f0dder 02 Sep 2009, 07:33
LocoDelAssembly wrote: f0dder, but how could you get "non-SMT cores"? The best you can do would be selecting the "left" or "right" logical core from each physical core. If you're willing to limit the OSes you run on (or OSes where you can detect SMT), check out GetLogicalProcessorInformation(). Vista/Server2003/XP64 and later only. _________________ - carpe noctem |
|||
02 Sep 2009, 07:33 |
|
Borsuc 02 Sep 2009, 14:54
BTW I don't recommend getting an i7 until it moves to 32nm...
|
|||
02 Sep 2009, 14:54 |
|
Azu 02 Sep 2009, 14:58
Ya that's what I'm waiting for ^^ I like the looks of AES-NI.
|
|||
02 Sep 2009, 14:58 |
|
Madis731 02 Sep 2009, 16:25
1) I've assembled many i7 platforms (many for sale) and they're all greatful for it. HT or not, its a nice CPU and DDR3 doesn't hurt
2) HT means there are double the register on a current CPU. Both logical ones are actually the same CPU. There is NO SUCH thing as SMT CPU. Like LocoDelAssembly said, you can go for left or right and they perform the same. 32nm is of course better, but then you'd have to wait for the "bugfixes" (tick-tock the Intel goes). There's actually a fresh i7 aswell on the 45nm, which is more power-efficient. I believe the very first models in 32nm-world aren't THAT great and you'll have to wait just a bit more. (PS. Very pleased with my 8 threads and SSE4.2 PCMPxSTRx instructions) EDIT: [sarcasm] Some say... i7 w/ SSE4.2 can make your O(N) algorithms O(1)! [/sarcasm] |
|||
02 Sep 2009, 16:25 |
|
Azu 02 Sep 2009, 20:26
If N is a low enough number, then that statement could be true..
Personally though I'm looking forward to the AES and AVX instructions more. |
|||
02 Sep 2009, 20:26 |
|
Borsuc 03 Sep 2009, 16:38
Azu wrote: If N is a low enough number, then that statement could be true.. O(N)=O(1) has only one solution: N=1. But N isn't always 1 though, and in math, it has to apply ALWAYS. And i7s are too hot, 130W at max load. Intel released Core 2 Quads at "green" version though, but they aren't better than an underclocked Core 2 Quad, and they cost more. Madis731 wrote: 1) I've assembled many i7 platforms (many for sale) and they're all greatful for it. HT or not, its a nice CPU and DDR3 doesn't hurt DDR3 also means more expensive mobo. And for me at least, there's no DDR3 with ECC, except for server mobos with Xeon processors, which I won't go into that territory ($$$$). _________________ Previously known as The_Grey_Beast |
|||
03 Sep 2009, 16:38 |
|
Azu 03 Sep 2009, 16:46
Borsuc wrote:
Borsuc wrote: i7s are too hot, 130W at max load. If not, ouch. |
|||
03 Sep 2009, 16:46 |
|
LocoDelAssembly 03 Sep 2009, 17:18
Quote:
But after replacing that SIMD instruction by several non-SIMD instruction the algorithm will remain O(1) (if it previously was). |
|||
03 Sep 2009, 17:18 |
|
Azu 03 Sep 2009, 17:23
LocoDelAssembly wrote:
|
|||
03 Sep 2009, 17:23 |
|
revolution 03 Sep 2009, 17:27
Azu wrote: Huh? We're talking about taking O(N) algorithms using non-SIMD and turning them into O(1) with SIMD, where N is low enough. |
|||
03 Sep 2009, 17:27 |
|
Azu 03 Sep 2009, 17:37
revolution wrote:
Here's an example; Let's say you have a non-SIMD algorithm that takes 1 clock cycle per addition, and then you have a SIMD algorithm that does 16 additions at once in 2 clock cycles. The non-SIMD one is O(N), but if N<17 then the SIMD one is O(1). |
|||
03 Sep 2009, 17:37 |
|
Goto page 1, 2, 3, 4, 5, 6, 7 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.