System Resource Restrictions for CSharp programs

  • Thread starter Thread starter =?ISO-8859-15?Q?Martin_P=F6pping?=
  • Start date Start date
?

=?ISO-8859-15?Q?Martin_P=F6pping?=

Hello,

are there any system resource restrictions for running a self coded
CSharp programm in Visual Studio?

If yes, how can I give my program as much RAM and CPU power als possible?


Regards,

Martin
 
Hello Martin_Popping,

M> are there any system resource restrictions for running a self coded
M> CSharp programm in Visual Studio?

Bounds for FW in general set by the Windows requirements for the current
platform
What do u mean by restriction? General .NET 2.0 requirements are there http://www.microsoft.com/downloads/...8edd-aab15c5e04f5&displaylang=en#Requirements

M> If yes, how can I give my program as much RAM and CPU power als
M> possible?

Allocatate whatever RAM u need (no more 2Gb) and set the high priotiry to
your app.

But what are u going to do? smth like realtime app?

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Michael said:
Bounds for FW in general set by the Windows requirements for the current
platform

What do you mean with "FW"?
M> If yes, how can I give my program as much RAM and CPU power als
M> possible?

Allocatate whatever RAM u need (no more 2Gb) and set the high priotiry
to your app.

And how do I allocate RAM? I thought C# does not have an explicit memory
allocation like C/C++.

But what are u going to do? smth like realtime app?
I´m doing a research in Document Clustering (at the end with up to 15
Mio. Documents)

There for I need as much CPU Power and RAM as possible.


Regards,

Martin
 
Hello Martin,

MP> Michael Nemtsev schrieb:
MP>MP> What do you mean with "FW"?

Framework (.net)

MP>MP> And how do I allocate RAM? I thought C# does not have an explicit
MP> memory allocation like C/C++.

You can' allocate desired RAM directly. Coz your work with the virtual memory
Process allocates memory it does so by first reserving virtual memory and
then committing memory out of this chunk. And memory allocated when object
initialized

What u can do is to increase working set via SetProcessWorkingSetSize() and
GC Threshold via IGCHost::SetGCStartupLimits()

MP>MP> I´m doing a research in Document Clustering (at the end with up to
MP> 15 Mio. Documents)
MP>
MP> There for I need as much CPU Power and RAM as possible.

Doesnt know what's "Document Clustering" but why not to rely on .NET framework,
it's rather optimal and for server app will use "server mode"

---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top