Otto Moerbeek <[email protected]> writes:
>
> You neglect to tell us platform details so we cannot tell.
>
I mentioned
>> trying to fill as much as I can in BIND's cache and I use 2 VMs with
>> identical configuration (2 CPUs, 8GB RAM) for the systems to perform the
>> tests.
more details:
kzorba@openbsd: ~ ->sysctl hw
hw.machine=amd64
hw.model=Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
hw.ncpu=2
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=cd0:,sd0:6f2e8c0759d7fce1,fd0:
hw.diskcount=3
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.vmt0.timedelta0=-6118.931944 secs, OK, Fri Apr 20
20:42:05.200
hw.cpuspeed=2659
hw.vendor=VMware, Inc.
hw.product=VMware Virtual Platform
hw.version=None
hw.serialno=VMware-56 4d ea ff 3c cb c5 ea-3a 4d e9 45 d9 73 01 50
hw.uuid=564deaff-3ccb-c5ea-3a4d-e945d9730150
hw.physmem=8588820480
hw.usermem=8588804096
hw.ncpufound=2
hw.allowpowerdown=1
kzorba@dmeg-dns1: ~ ->uname -a
OpenBSD <hostname> 5.0 GENERIC.MP#63 amd64
The Linux machine is an identical VM.
> OpenBSD has a bit different accounting on what counts for process size
> and resident size. Something like code or lib pages are accounted in
> one but not the other. I always forget the details.
>
Perhaps they are counted in resident and that should explain it.
>> The general question I am trying to answer is, can BIND utilize all
>> available memory on the system (so I can arrange the amount of memory
>> when I order the servers).
>
> Depends. i386 systems for example can only utilize max 2G per process
> and can address max 4G physical mem. Other platforms have different limits.
>
We are talking about amd64 with 8GB in the test case. The actual servers
when bought will be amd64 with probably a lot more memory (something
aroung 32 or 48 GB) if BIND can utilize it.
> Also, per process limits play a role.
>
Does named has such a limit by default?
If I believe ps(1) output
>> kzorba@openbsd: ~ ->ps -ax -v | head
>> PID STAT TIME SL RE PAGEIN VSZ RSS LIM TSIZ %CPU %MEM COMMAND
>> 31077 S 216:21.22 0 127 7 606228 608260 8145988 1292 13.2 7.3
>> /usr/sbin/named
it can utilize all of the available memory. However, the process VM and
RSS size behavior is completely different than Linux. Currently, while
the tests keep running I have
OpenBSD
load averages: 0.27, 0.37, 0.36
openbsd 20:47:34
35 processes: 34 idle, 1 on processor
CPU0 states: 0.2% user, 0.0% nice, 0.2% system, 0.2% interrupt, 99.4% idle
CPU1 states: 0.3% user, 0.0% nice, 0.2% system, 0.0% interrupt, 99.5% idle
Memory: Real: 611M/1234M act/tot Free: 6726M Cache: 552M Swap: 0K/502M
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
31077 named 2 0 594M 596M sleep/1 select 264:49 11.82% named
Linux
top - 20:48:18 up 16 days, 5:53, 3 users, load average: 0.00, 0.00, 0.00
Tasks: 109 total, 1 running, 108 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.2%sy, 0.0%ni, 99.4%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 8062104k total, 5548408k used, 2513696k free, 144852k buffers
Swap: 5486188k total, 0k used, 5486188k free, 219112k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19542 named 20 0 5062m 4.7g 2564 S 7.9 61.5 232:57.98 named
Regards,
Kostas
--
Kostas Zorbadelos
twitter:@kzorbadelos http://gr.linkedin.com/in/kzorba
----------------------------------------------------------------------------
() www.asciiribbon.org - against HTML e-mail & proprietary attachments
/\