Click here to Skip to main content
15,895,011 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: vs 2005 tool box Pin
haytham_mohammad2-Dec-06 7:45
haytham_mohammad2-Dec-06 7:45 
GeneralRe: vs 2005 tool box Pin
haytham_mohammad2-Dec-06 11:15
haytham_mohammad2-Dec-06 11:15 
QuestionL1, L2 Cache Pin
kkchh1-Dec-06 5:42
kkchh1-Dec-06 5:42 
AnswerRe: L1, L2 Cache Pin
Dan Neely1-Dec-06 7:15
Dan Neely1-Dec-06 7:15 
GeneralRe: L1, L2 Cache Pin
kkchh1-Dec-06 14:01
kkchh1-Dec-06 14:01 
GeneralRe: L1, L2 Cache Pin
Dave Kreskowiak1-Dec-06 16:38
mveDave Kreskowiak1-Dec-06 16:38 
GeneralRe: L1, L2 Cache Pin
kkchh1-Dec-06 17:38
kkchh1-Dec-06 17:38 
GeneralRe: L1, L2 Cache Pin
Dave Kreskowiak2-Dec-06 7:17
mveDave Kreskowiak2-Dec-06 7:17 
The last time I saw that little trick being used was under DOS way back in the day. I don't see any possible way of doing it under Windows. At least that has any decent performance benefit. Remember, your application is only a few threads running in a sea of a few hundred of them. Back under DOS, your app had total control of the entire system. Under Windows, that's never the case. If you try and monopolize even a quarter of either cache with your own code and data, what impact is that going to have on the rest of the system and applications that are running?

Minimizing cache swaps for your code/data means that other code/data are going to get swapped more often. So great! You get a performance benefit for your app, but you can only get that benefit by taking the performance away from something else. In my book, that warrants uninstalling your app.

I'm not your enemy here! Big Grin | :-D Your boss is! Seriously, does he know what the cost of even attempting to develop such a solution would be?

Is minimizing cache swaps going to be the best performance benefit and use of that money? No, it's not. The thing that slows your app down FAR more is the time your app isn't even executing any code because the single processor machine is executing hundreds of other threads. If you can increase the priority of your application, your threads can get back to the top of the scheduler sooner and spend less time idling. Now that's easy to do with the Thread[^] class. But like I said, you can't get a benefit for free.





Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: L1, L2 Cache Pin
kkchh3-Dec-06 6:25
kkchh3-Dec-06 6:25 
QuestionProfilers Pin
Tristan Rhodes1-Dec-06 1:52
Tristan Rhodes1-Dec-06 1:52 
AnswerRe: Profilers Pin
Pete O'Hanlon1-Dec-06 2:56
mvePete O'Hanlon1-Dec-06 2:56 
AnswerRe: Profilers Pin
Dave Kreskowiak1-Dec-06 4:36
mveDave Kreskowiak1-Dec-06 4:36 
GeneralRe: Profilers Pin
Thomas Stockwell2-Dec-06 16:13
professionalThomas Stockwell2-Dec-06 16:13 
GeneralRe: Profilers Pin
Dave Kreskowiak2-Dec-06 17:10
mveDave Kreskowiak2-Dec-06 17:10 
GeneralRe: Profilers Pin
Thomas Stockwell3-Dec-06 3:16
professionalThomas Stockwell3-Dec-06 3:16 
QuestionInterfacecasting Pin
Hendrik Debedts30-Nov-06 22:43
Hendrik Debedts30-Nov-06 22:43 
AnswerRe: Interfacecasting Pin
Guffa30-Nov-06 23:13
Guffa30-Nov-06 23:13 
GeneralRe: Interfacecasting Pin
Hendrik Debedts1-Dec-06 0:15
Hendrik Debedts1-Dec-06 0:15 
AnswerRe: Interfacecasting Pin
Guffa1-Dec-06 1:16
Guffa1-Dec-06 1:16 
GeneralRe: Interfacecasting Pin
Hendrik Debedts1-Dec-06 8:26
Hendrik Debedts1-Dec-06 8:26 
GeneralRe: Interfacecasting Pin
PIEBALDconsult1-Dec-06 9:01
mvePIEBALDconsult1-Dec-06 9:01 
GeneralRe: Interfacecasting Pin
Scott Dorman1-Dec-06 10:34
professionalScott Dorman1-Dec-06 10:34 
GeneralRe: Interfacecasting Pin
PIEBALDconsult1-Dec-06 12:22
mvePIEBALDconsult1-Dec-06 12:22 
GeneralRe: Interfacecasting Pin
Scott Dorman1-Dec-06 12:37
professionalScott Dorman1-Dec-06 12:37 
AnswerRe: Interfacecasting Pin
Guffa1-Dec-06 16:58
Guffa1-Dec-06 16:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.