Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 11
Posts: 11   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2048 times and has 10 replies Next Thread
Tom WCG
Cruncher
Joined: May 30, 2006
Post Count: 31
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
How to limit RAM usage and number of cores used by the processor [RESOLVED]

Hi,
When I run Computing for Sustainable Water 6.12, it takes up about 270-290 MB of RAM. I really like this project and would like to run it, but need the RAM for something else.

I can afford 500-700 MB of RAM for all 4 running projects.

Is there any way to limit the usage of RAM on this particular project. Or does it require the whole thing to be in RAM to run?

Thank you

Windows 7 64-bit, Intel I7 3rd Generation with 2 cores x 2 thread, BOING ver. 6.1.58

4 GB of RAM (with virtual memory is turned off due to internal policy)
----------------------------------------
[Edit 2 times, last edit by Tom WCG at Sep 17, 2012 12:26:56 PM]
[Sep 12, 2012 5:45:30 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

As this project finishes in about 7 days I would not worry about it! wink
[Sep 12, 2012 5:49:41 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Tom_WCG,

If you'd artificially push part of a job out of RAM into disk based virtual memory, you'll be risking to constantly have jobs swap data from memory to disk and back, making your device slow to very slow.

What you can do is set the memory maximum during use as a percent of total (mine is 75%, of 8GB) and a higher value for when idle (mine is 95% of said 8Gb). Set the percent so that BOINC will run less jobs while you are using the computer [it will suspend them and move them to Virtual memory, if the Leave application in memory while suspended is on]. On a system with 4GB RAM, 4 concurrent CFSW would use 1.2GB maximum, that's 30% [actually that's not much in relative terms to what users use in their applications]. Set memory while using to 20% and just 0.8GB would be allowed, so 2 or 3 jobs will run while you're at the computer, but at maximum performance without swapping back/forth to disk.

And thanks Scribe, but now the Tom_WCG and other readers will know if they do other sciences with high memory use how they could approach this, forcing jobs to pause i.e. use less cores to crunch [temporarily] in an automated fashion.
----------------------------------------
[Edit 1 times, last edit by Former Member at Sep 12, 2012 6:04:26 AM]
[Sep 12, 2012 5:59:14 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Tom WCG
Cruncher
Joined: May 30, 2006
Post Count: 31
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Thank you Scribe and SekeRob for your very quick responses. Very useful info. Guess it's also time for me to clean up unneeded applications in RAM.
[Sep 12, 2012 6:21:23 AM]   Link   Report threatening or abusive post: please login first  Go to top 
gb009761
Master Cruncher
Scotland
Joined: Apr 6, 2005
Post Count: 3010
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Tom_WCG, I know how you feel - as, prior to the announcement that the project was coming to a conclusion a lot sooner than originally thought, I was manually allowing 2 CFSW WU's to run (alongside either of the VINA based projects) so as to limit the memory usage.

Now though, I'm just having to 'grin and bear it', allowing 4 CFSW WU's to eat into the 4Gb of memory my lappie has...
----------------------------------------

[Sep 12, 2012 12:24:09 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Tom WCG
Cruncher
Joined: May 30, 2006
Post Count: 31
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Yeah, GB smile

I now have another strange problem. The answer should be beneficial to other members too.

I followed SekeRob's suggestion above by lowering the memory usage limit to 20%. BOINC has been running 3 tasks at a time since.

The problem is that I have cleared up my RAM and am ready to run 4 tasks concurrently (on 2 cores x 2 hyperthreading) as before. I've changed the memory usage limit to 40% for when my notebook is both Idle and in-use.

1. After the change, however, BOINC still insists on running only 3 tasks at a time. It seems like a waste of my CPU's capability to not being able to run 4 tasks concurrently. Please help.

2. BOINC sometimes (not always) switch to run 3 "High Priority Tasks". What does this mean and is it why I can't run 4 tasks at a time?

Thank you
----------------------------------------
[Edit 1 times, last edit by Tom WCG at Sep 14, 2012 2:43:13 PM]
[Sep 14, 2012 2:41:46 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Depends on how patient you are. Of course, long as you keep touching that computer, it wont be considered "user idle" until the preference "Only after computer has been idle for xx minutes". Don't know why you chose 40% when in use/not in use, but 100% would certainly send message to go all out and assume you're doing this local. If on the website, of course the client needs to communicate with server before the change takes effect.

The High Priority could hint at high cache or old tasks, so if you have e.g. 7 days cache with 4 cores running, and the client switches to 3 cores, it then has 4/3*7 days buffer, and suddenly you have deadline issues with a near 10 days buffer for 3 cores. [one of the possible explanations]
[Sep 14, 2012 3:10:41 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Tom WCG
Cruncher
Joined: May 30, 2006
Post Count: 31
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Thanks, SekeRob.

Yes, I made the changes locally on my notebook's BOINC. Anyway, as you suggested, I've changed the Memory Usage Limit to 40% for In-use and 90% for Idle (with a 70% limit on processor usage because I am worried about the heat).
[Sep 15, 2012 8:20:21 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Tom WCG
Cruncher
Joined: May 30, 2006
Post Count: 31
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage

Solution found! cool Stupid me!

The problem:
My notebook has 2 cores x 2 hyperthreadings. It should run 4 tasks concurrently. Only 2 was run at at time.

The finding:
While I was fiddling with SekeRob's suggestions above, I mistakenly set xxxx to 50%. My notebook has been running 4 tasks concurrently after I set xxxx to 100%. Am happy crunching now! biggrin

[BOING Manager --> Preferences --> Processor Usage --> "On multiprocessor systems, use at most xxxx % of the processors"]
----------------------------------------
[Edit 1 times, last edit by Tom WCG at Sep 16, 2012 9:13:54 PM]
[Sep 16, 2012 9:09:54 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to limit Sustain Water Project's RAM usage [RESOLVED]

Great. If you edit the opening post title as done to this post and insert [RESOLVED], the case is closed and hopefully tips other searching BOINC souls how to limit the number of BOINC processes via the memory control.

There's been a very old, much repeated wish to specify % CPU processors during use and idle. All the contortions to get it done, rather than a KISS for users. There are 3rd party tools, but too involved and in wrong hands, problem/performance issue causing

[Sep 17, 2012 8:50:53 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 11   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread