Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

delphi - When to call SetProcessWorkingSetSize? (Convincing the memory manager to release the memory) -


in previous post ( my program never releases memory back. why? ) show fastmm can cache (read hold itself) pretty large amounts of memory. if application loaded large data set in ram, after releasing data, see impressive amounts of ram not released memory pool.

i looked around , seems calling setprocessworkingsetsize api function "flush" cache disk. however, cannot decide when call function. wanted call @ end of onclick event on button performing ram intensive operation. however, people saying may cause av.

if used function successfully, please let me (us) know.

many thanks.


edit:
1. after releasing data set, program still takes large amounts of ram. after calling setprocessworkingsetsize size returns few mb. argue nothing released back. agree. memory foot print small , not increasing after using program (for example when performing normal operation not involves loading large data sets). unfortunately, there no way demonstrate memory swapped disk ever loaded memory, think not. 2. have demonstrated (i hope) not memory leak:
my program never releases memory back. why?
how convince memory manager release unused memory

if setprocessworkingsetsize solve problem, problem not fastmm keeping hold of memory. since function trim workingset of application writing memory in ram page file. nothing released windows.

in fact have made accessing memory again slower, since has read disc. method has same effect minimising application. windows presumes not going use application again , writes workingset in ram pagefile. windows job of deciding when write ram pagefile , tries keep used memory in ram long can. make workinset size smaller (write pagefile) when there little ram left. not mess give illusion program using less memory while in fact using as before, slower access. memory accessed again loaded ram again , make workinset size grow again. touching less memory keeps workingset size smaller.

so no, not forcing fastmm release memory. if goal application use less memory should elsewhere. leaks, heap fragmentations optimisations , if think fastmm keeping doing should try find facts support it. if goal keep workinset size small try keep memory access local. maybe fastmm or memory manager it, different problem compared using memory. , maybe function solve problem having, use care , not use keep illusion program has low memory usage.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -