c# - Requesting memory for your application -


i having similar issue this person. primary difference being application not meant developer environment, , therefore need know how optimize space used sql server (possibly per machine based on specs).

i intrigued ricardo c's answer, particularly following:

extracted fromt sql server documentation:

maximum server memory (in mb)

specifies maximum amount of memory sql server can allocate when starts , while runs. configuration option can set specific value if know there multiple applications running @ same time sql server , want guarantee these applications have sufficient memory run. if these other applications, such web or e-mail servers, request memory needed, not set option, because sql server release memory them needed. however, applications use whatever memory available when start , not request more if needed. if application behaves in manner runs on same computer @ same time sql server, set option value guarantees memory required application not allocated sql server.

my question is: how application request memory os when needs it? built compilation or managed developer? 2 primary apps running on machine sql server , (fairly heavyweight) c# application i'm developing, , i'm didn't in realm of asking os memory. there correct/necessary way this?

some applications allocate lot of memory @ startup, , run own memory management system on it. can applications have particular allocation patterns, , feel can better job more generic memory manager provided runtime system.

many games this, since have idea of how memory usage pattern going look, , heavily optimized. default/system allocator general-purpose , not fast enough. doom did this, , well-known , of course code available , discussed.

in "managed" languages c# think rare, , nothing need worry about.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -