performance hints (6.2)
I've got a freebsd 6.2 system, dual 2Ghz 5130 cpu, 4g ram, with raid5 Adaptec 2120s, running not much more than /usr/ports/mail/imap-uw and I'm having performance problems with only 20 IMAP users. I'm not swapping.. cpu is mostly idle, so I figure it must be I/O performance. Just to confirm, is that what the following show? Thanks, -mark last pid: 81212; load averages: 0.01, 0.08, 0.08 up 87+17:07:41 12:44:46 87 processes: 1 running, 86 sleeping CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 542M Active, 2860M Inact, 271M Wired, 109M Cache, 214M Buf, 40M Free Swap: 4096M Total, 19M Used, 4077M Free # vmstat 5 procs memory page disk faults cpu r b w avmfre flt re pi po fr sr aa0 in sy cs us sy id 0 2 1 700876 214348 375 10 0 0 217 503 0 504 163 214 0 1 99 0 2 0 703064 204504 432 0 2 0 10431 9626 333 998 13331 3595 1 3 96 0 1 0 699548 162820 119 0 0 0 2340 0 86 431 3681 1332 0 1 99 0 1 0 699548 1628200 0 0 0 0 0 0 259 603 608 0 0 100 0 0 1 699548 1628360 0 0 0 6 0 11 243 476 590 0 0 100 0 1 0 699548 162840 11 0 0 0 11 0 0 294 724 681 0 0 100 0 2 0 702140 154740 399 0 0 0 534 0 13 351 6118 869 1 1 99 0 2 0 702140 169360 25 0 0 0 9605 10308 314 835 10632 3127 1 2 97 0 2 0 702140 182172 30 0 0 0 9717 10312 311 872 10589 3182 1 2 96 0 1 0 702076 214312 256 0 0 0 8907 10306 289 836 11190 3052 1 2 97 1 1 0 702056 169060 180 0 0 0 2430 0 86 440 3600 1339 0 0 99 0 1 0 702076 168944 271 0 0 0 304 0 6 349 3303 836 0 1 99 0 1 0 703428 167680 245 0 0 0 149 0 7 276 1350 689 0 0 100 1 1 0 707064 155304 9018 0 10 0 9034 0 84 785 15093 3682 2 4 94 1 1 0 706552 154300 2015 0 0 0 1731 0 18 505 4831 1419 0 1 99 0 3 0 705336 113604 506 0 0 0 2109 0 80 411 5056 1276 0 1 99 0 3 0 738504 159624 2422 0 0 0 8775 10335 273 813 8293 2972 1 3 96 0 4 0 720280 178408 146 0 0 0 1056 0 579 929 1252 3055 1 3 96 1 1 0 702528 195568 270 0 0 0 1061 0 194 527 33855 1418 3 4 93 0 1 0 701200 196416 17 0 0 0 45 0 1 251 1066 598 0 0 100 0 1 0 702856 195232 445 0 0 0 266 0 6 332 10429 816 1 1 98 0 1 0 703460 195044 324 0 0 0 245 0 5 301 1585 736 0 0 100 0 2 0 706052 147972 496 0 0 0 855 0 81 491 60244 1628 6 7 87 0 3 0 706456 114584 237 0 0 0 12094 10301 396 1162 15662 4454 1 3 95 2 1 0 706560 172896 879 0 0 0 13237 15463 410 1317 17773 4954 1 4 95 1 2 0 705072 131140 431 1 0 0 11914 9426 391 1096 14791 4204 1 3 96 0 3 0 705408 207584 338 0 0 0 11890 15461 389 1091 14699 4286 1 3 95 0 3 0 703808 215928 25 0 0 0 9965 10308 351 972 11946 3795 1 3 96 0 1 0 704916 201680 92 0 0 0 5981 5154 211 680 62050 2798 7 8 85 1 1 0 709872 206228 339 0 0 0 5037 5150 183 661 7084 2191 1 1 98 # iostat 5 tty aacd0 cpu tin tout KB/t tps MB/s us ni sy in id 0 16 96.21 44 4.17 0 0 1 0 99 0 47 15.42 11 0.17 0 0 0 0 100 09 111.87 246 26.83 1 0 2 0 97 09 115.72 262 29.60 1 0 2 0 98 09 122.42 344 41.14 1 0 2 0 96 09 110.45 96 10.35 1 0 1 0 99 09 2.67 1 0.00 0 0 0 0 100 09 17.05 8 0.13 1 0 1 0 98 09 21.89 4 0.08 0 0 0 0 100 09 101.85 97 9.65 0 0 1 0 99 09 37.27 10 0.36 1 0 0 0 99 09 0.00 0 0.00 0 0 0 0 100 0 79 11.98 22 0.26 1 0 0 0 99 1 566 17.80 8 0.14 0 0 0 0 100 0 357 19.56 13 0.24 0 0 0 0 100 0 77 9.40 2 0.02 3 0 3 0 94 2 272 7.07 6 0.04 1 0 1 0 98 4 178 26.17 83 2.11 4 0 5 0 91 19 13.15 9 0.12 0 0 1 0 98 3 11 120.87 279 32.97 1 0 2 0 97 tty aacd0 cpu tin tout KB/t tps MB/s us ni sy in id 0 179 119.18 307 35.77 1 0 2 0 97 0 237 119.75 353 41.25 2 0 3 0 96 0 286 120.31 330 38.74 1 0 2 0 96 1 30 96.41 382 35.92 1 0 2 0 97 2 52 85.32 447 37.27 7 0 5 0 88 0 39 87.55 402 34.40 10 0 4 0 86 09 121.10 426 50.32 2 0 3 0 94 0 119 115.22 393 44.16 2 0 2 0 95 1 1003 113.15 358 39.59 1 0 3 0 96 0 108 113.06 230 25.39 1 0 1 0 98 0 148 92.30 69 6.20 0 0 1 0 99 0 706 14.85 9 0.14 0 0 0 0 100 0 188 26.69 18 0.47 0 0 0 0 100 0 1309 108.58 234 24.81 4 0 4 0 92 0 849 95.10 433 40.18 2 0 3 0 95 0 152 119.58 349 40.77 1 0 3 0 96 ___ freebsd-questions@freebsd.org mailing list
Re: performance hints (6.2)
What does a gstat look like over time? Oooh, didn't know about gstat it shows disks as being 102% busy at times :-) Thanks to you and Chuck S. for the hints. -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
password file migration
I know this has been covered before, but the search mechanism at the mailing list archive doesn't seem to work (zero matches for the word: password). I've got a 5.3 system and a 6.2 system. I want to migrate the user accounts from the 5.3 to the 6.2. They use different encryption mechanisms for the password in master.password. Other that running a cracker, is there a way to upconvert the old to the new? Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
www/jserv on 6.2
On a 6.2 system, I'm trying to get /usr/ports/www/apache-jserv to build. It failed the first time, so I updated the ports tree and it fails again. It reports: checking for httpd.h... no and the log file shows: /usr/local/include/apache22/httpd.h:50:24: apr_tables.h: No such file or directory /usr/local/include/apache22/httpd.h:51:23: apr_pools.h: No such file or directory /usr/local/include/apache22/httpd.h:52:22: apr_time.h: No such file or directory /usr/local/include/apache22/httpd.h:53:28: apr_network_io.h: No such file or directory /usr/local/include/apache22/httpd.h:54:25: apr_buckets.h: No such file or directory /usr/local/include/apache22/httpd.h:55:22: apr_poll.h: No such file or directory /usr/local/include/apache22/httpd.h:745:21: apr_uri.h: No such file or directory Those files are in /usr/local/include/apr-1/ so I soft-linked them from /usr/local/include/apache22 Now it fails here: configure:4279: cc -E -I/usr/local/include/apache22 conftest.c / dev/null 2conftest.out configure:4275:23: os-inline.c: No such file or directory configure: failed program was: #line 4274 configure #include confdefs.h #include os-inline.c Anyone out there have a nice HowTo for getting this done? Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: trouble with HT
You also need to add: kern.smp.active = 1 kern.smp.cpus = 1 What? I've never added lines like those... They always seem to have the correct values for me: Here it is on 4.8: # sysctl -a | grep smp machdep.smp_active: 1 machdep.smp_cpus: 2 and 5.3: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.maxcpus: 16 kern.smp.active: 1 kern.smp.disabled: 0 kern.smp.cpus: 2 kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 and 6.1: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.maxcpus: 16 kern.smp.active: 1 kern.smp.disabled: 0 kern.smp.cpus: 4 kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 and 6.2: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.forward_roundrobin_enabled: 1 kern.smp.forward_signal_enabled: 1 kern.smp.cpus: 4 kern.smp.disabled: 0 kern.smp.active: 1 kern.smp.maxcpus: 16 Now, on that 6.1 system, it boots as: CPU: Intel(R) Xeon(TM) CPU 3.40GHz (3391.51-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf4a Stepping = 10 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC, SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI, MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x649dSSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,b14 AMD Features=0x2010NX,LM AMD Features2=0x1LAHF Logical CPUs per core: 2 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 but all I ever see in 'top' is cpu 0 and 2 doing anything. Meanwhile, on a 6.2 Dempsey system with this: CPU: Intel(R) Xeon(R) CPU5130 @ 2.00GHz (2000.08-MHz K8- class CPU) Origin = GenuineIntel Id = 0x6f6 Stepping = 6 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE ,MCA,C MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x4e33dSSE3,RSVD2,MON,DS_CPL,VMX,TM2,b9,CX16,b14,b15,b 18 AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF Cores per package: 2 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 I see CPU 0,1,2 and 3 in the top output. What's up with that 6.1 machine showing only cpu 0 and 2? The CPU are listed here: http://processorfinder.intel.com/details.aspx?sSpec=SL8P4 Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
per-interface default routes?
Suppose you have a freebsd box with two LAN interfaces, one numbered on netA and one on netB... Some applications are listening on the netA IP address, some on the netB IP address. Some applications may be listening on all interfaces but might have a directive that indicates which IP address to use for packets sourced from the application, like this: query-source address 192.0.2.2 port 53; What I want to happen is that packets sourced from the netA IP address go out the netA physical interface and packets sourced from the netB IP address go out the netB physical interface. That is, I want per-interface default routes (is this the correct term?). How do I do this? Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: per-interface default routes?
Route has more information if you want to setup default routes for interfaces. I'm familiar with route(8)... but I don't see how that will work. Can you expand on your comment? I'm likely to do the ipfw approach suggested by Wojceich, as soon as I rebuild with options IPFIREWALL_FORWARD, Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
remote install of 6.2
I have a remote machine running 4.8-p21. The system has two disks in it, but only one is used on a daily basis (the other is filled via dd every now and then). I want to get this remote machine running 6.2, so I figured I'ld install the new OS on the second disk, then boot off the second disk, leaving the original first disk with all the user data on it (plus as a way to back out). When I try to use /stand/sysinstall for this it seg-faults early in the installation, but after the Commit step. I figure this is because the install process has changed a bit since 4.8. Is there a way to fix this and/or what is the best way to achieve my goal... which is: install 6.2 on a remote system without hammering the current system disk? Thanks, -mark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]