PDA

View Full Version : CB Memory usage



PCZ
02-23-2004, 08:29 AM
How much memory does the CB phase 3 client use.

After seeing conflicting reports of memory usage I decided to do some testing.

Windows

I downloaded the latest version of the client and it autorun with the cbagent.
Checking the memory usage showed it to be using about 4800k.

I opened a cmd window and CD'd to the chessbrain directory.

Typing cbpncli ran the client with the grey GUI screen.
Memory usage was again around 4800k

I ran the client with the GUI hidden cbpncli 0
The memory usage was still 4800k.

I then ran the client using the cbspn.conf file instead of the registry.
cbpncli 0,cbspn.conf {running without GUI}
cbpncli 1,cbspn.conf {running with GUI}

This time the memory usage was 21,032k in both cases

So if you use the cbspn.conf file the memory usage is 21mb

Linux
The client uses about 19mb.

Note:
Don't forget to add your pid to the cbspn.conf file or you will be doing work as anonymous !!

PY 222
02-23-2004, 01:25 PM
Thanks for the detective work PCZ.

Now we know that the conflicting statements in the previous thread was ok and not because of some gremlins in the system.

Anteraan
02-23-2004, 01:39 PM
Does this mean that the registry approach is more efficient, or is the .conf approach more effective (faster) due to its increased memory usage?

The question (hypothetical) that follows is: If I want to devote about 21,000k to CB, would you recommend 4 instances of the registry approach over 1 instance of the .conf approach?

And then comes the third question -- am I making any sense at all with this? :confused:

rshepard
02-23-2004, 01:59 PM
Just for the heck of it, I moved some of my clients to the registry-based format this morning.
As it stands right now, I can't see that it is making any particular difference in the processing time of the client, compared to the conf-file based ones. :dunno:

the-mk
02-24-2004, 04:08 PM
PCZ, with which OS-versions did you get those memory-usage-numbers?

PCZ
02-24-2004, 06:31 PM
W2K Server and RH 9

I repeated the tests in XP and the results were the same.

If you are also testing be aware that you won't see the memory usage increase to 21 meg until the supernode is active.