Re: portupgrade-2.1.3.2,2 doesn't work with db42
Miroslav Lachman wrote: Odhiambo Washington wrote: rm /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/bdb.so then tell me what happens if you run portupgrade again! I've gone through this today, so it's still fresh in my mind! After removing bdb.so portupgrade is working again. Thank you! Just for my knowledge - from where goes this error? What should be fixed? Ruby-bdb or portupgrade? ports/99697 Please note the topic is ports@ relate. And was discussed there. -- Dixi. Sem. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: em device hangs on ifconfig alias ...
Mornin'! On Mon, Jul 10, 2006 at 12:11:36AM -0400, Mike Tancsa wrote: Not sure what STP is Spanning Tree Protocol. Having the link go up and down would cause the switch port to block traffic for a period of time. Of course, any reasonable administrator would configure interface FastEthernet0/1 spanning-tree portfast for all ports connected to hosts. (shown syntax is Cisco's). Regards, Patrick -- punkt.de GmbH Internet - Dienstleistungen - Beratung Vorholzstr. 25Tel. 0721 9109 -0 Fax: -100 76137 Karlsruhe http://punkt.de ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: em device hangs on ifconfig alias ...
At 03:09 AM 10/07/2006, Patrick M. Hausen wrote: Of course, any reasonable administrator would configure interface FastEthernet0/1 spanning-tree portfast for all ports connected to hosts. (shown syntax is Cisco's). Yes, its great if you have access to the cisco... Not always possible in a colo. ---Mike ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.1 quota issues
On Mon, Jul 10, 2006 at 01:39:01AM -0400, Charles Sprickman wrote: On Mon, 10 Jul 2006, Kostik Belousov wrote: On Mon, Jul 10, 2006 at 12:41:07AM -0400, Charles Sprickman wrote: On Sat, 8 Jul 2006, Matthew D. Fuller wrote: On Fri, Jul 07, 2006 at 10:56:47PM -0400 I heard the voice of Charles Sprickman, and lo! it spake thus: Trying again, it reported the same inconsistencies then sat there for more than an hour taking up all the available CPU on the box until I killed it. The mtime on quota.user had not changed during the run. FWIW, I saw this on a box I setup running a late November -CURRENT last year; I could never get the quotas setup and running right because the check always just looped itself up. The partition they're on has about 3 gig used out of ~45, with maybe a dozen users. I never spent much time on it, since it's just a personal box, and the quotas are mostly just to provide a handy measure of who's using what (no limits set). I just gave it up and decided to worry about it later. What should I do here? It's consistently failing. What information should I gather to forumulate a PR that won't burden the assignee with lots of troubleshooting mess? The machine is not in production, but there is user data on it. I could allow a trusted developer access to it, or even create another jail to illustrate the problem. It is not clear from your report whether you run fsck on the problem partition. I think (and my view is backed by unexpected inconsistencies message) that this is the must. Sorry about that, I did not mention it, but thinking the same thing you did, I unmounted the partition and fsck'd twice for good measure. Both runs came back clean. I think its quotacheck complaining about the quota.user file... Ok, please, show me uname -a, dmesg, /etc/fstab, mount -v. pgpTHS2z3Bskl.pgp Description: PGP signature
Re: MySQL and default memory limits (mysqld: Out of memory)
On Sun, 2006-Jul-09 23:45:44 +0200, Mathieu Arnold wrote: +-Le 09/07/2006 17:36 -0400, Mike Jakubik a dit : | Exactly, its nice being able to see the current values. How else can i | see what the values are set to? As I previously said, it's 512M on i386, and 1G on 64 bit platforms. That doesn't answer Mike's question. The _default_ i386 size is 512M, the _current_ values can be found using ulimit (getrlimit(2)). Note that on non-PAE i386, the maximum process size is limited by the kernel size - there is a total of 4GB address space available and by default, the kernel has 2GB allocated to it. This isn't quite enough if you have 4GB RAM. -- Peter Jeremy pgpPna19fy7xV.pgp Description: PGP signature
Re: MySQL and default memory limits (mysqld: Out of memory)
On Mon, Jul 10, 2006 at 05:41:16PM +1000, Peter Jeremy wrote: On Sun, 2006-Jul-09 23:45:44 +0200, Mathieu Arnold wrote: +-Le 09/07/2006 17:36 -0400, Mike Jakubik a dit : | Exactly, its nice being able to see the current values. How else can i | see what the values are set to? As I previously said, it's 512M on i386, and 1G on 64 bit platforms. That doesn't answer Mike's question. The _default_ i386 size is 512M, the _current_ values can be found using ulimit (getrlimit(2)). Note that on non-PAE i386, the maximum process size is limited by the kernel size - there is a total of 4GB address space available and by default, the kernel has 2GB allocated to it. This isn't quite enough ^ 1Gb+4Mb. if you have 4GB RAM. -- Peter Jeremy pgpdzFv3vwYsS.pgp Description: PGP signature
Re: GEOM problems again...
On 21 maj 2006, at 11.16, Johan Ström wrote: Hi I've had problems before with GEOM mirror and my SATA drives, and i've posted about it here before too. The solution seemd to be a change of motherboard, this reduced the crash very much (and also the speeds archieved was greatly improved, from 10-15MB/s to 40-50MB/s..). However after the change i had one or two crashes, but now it has been running for well over 50-60 days or so without any problems. Then, 11 days ago I upgraded to 6.1... And now I got these crashes again (the mirror is crashed that is, the system still runs fine): May 21 02:04:58 elfi kernel: ad6: FAILURE - device detached May 21 02:04:58 elfi kernel: subdisk6: detached May 21 02:04:58 elfi kernel: ad6: detached May 21 02:04:58 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 disconnected. May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=11006308352, length=2048)]error = 6 May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=164847927296, length=131072)]error = 6 May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=256680296448, length=32768)]error = 6 Some info about the controller and disks: May 9 22:46:52 elfi kernel: ata1: ATA channel 1 on atapci0 May 9 22:46:52 elfi kernel: atapci1: nVidia nForce2 Pro SATA150 controller port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0x7f00-0x7f0f, 0x7c0 0-0x7c7f irq 22 at device 11.0 on pci0 May 9 22:46:52 elfi kernel: ad4: 286188MB Maxtor 7L300S0 BANC1G10 at ata2-master SATA150 May 9 22:46:52 elfi kernel: ad6: 286188MB Maxtor 7L300S0 BANC1G10 at ata3-master SATA150 May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1 created (id=4118114647). May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 detected. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 detected. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 activated. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 activated. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider mirror/gm0s1 launched. May 9 22:46:52 elfi kernel: Trying to mount root from ufs:/dev/ mirror/gm0s1a Anyone got any new clues? Afaik the disks should be working fine (they are 6 months old and this same problem has occured multiple times...) Hope to solve this ;) Thanks Johan Here we go again Jul 7 16:20:09 elfi kernel: ad4: FAILURE - device detached Jul 7 16:20:09 elfi kernel: subdisk4: detached Jul 7 16:20:09 elfi kernel: ad4: detached Jul 7 16:20:09 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 disconnected. Jul 7 16:20:09 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=88896847872, length=32768)]error = 6 However no read read timeouts etc as before, just this. 18 days uptime this time (i've rebooted for other reasons since last mail). It always seems to be ad4 that is disconnecting.. I'm going to do some disk tests on it but i doubt it will give anything since i've had similiar problems from day one (did tests at that time w/o problems) with this gmirror setup (new disks). Johan ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Processes in block state in vmstat.
On Friday, 7 July 2006 at 16:40:26 +0300, Nikolay Pavlov wrote: Hi, folks. I want to add some additional information about problem related processes in block state. I see it on my server Dual CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) with amrd device. It seems my issue could be related this PR http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/94139 i have submitted follow-up report with backtraces. FreeBSD 6.1-RELEASE-p1 I see some httpd daemons in D state: procs memory page disk faults cpu r b w avmfre flt re pi po fr sr am0 in sy cs us sy id 0 527 0 2173832 94028 49 0 0 0 2722 2658 0 9219 4140 17350 1 7 92 0 528 0 2172836 93636 66 0 0 0 218 0 6 504 512 1221 0 2 98 0 523 0 2171828 93360 56 0 0 0 188 0 6 551 298 1286 0 2 98 0 523 0 2171972 92612 29 0 0 0 189 0 6 520 395 1250 0 2 98 30 494 0 2170976 91836 92 0 0 0 333 0 11 448 250 970 0 2 98 0 518 0 2171156 90580 43 1 0 0 314 0 10 640 758 1676 0 3 97 0 510 0 2170244 89452 61 0 0 0 402 0 14 615 644 1667 0 3 97 1 512 0 2170420 892921 0 0 0 0 0 0 493 307 1133 0 2 98 0 517 0 2169560 86868 110 0 0 0 735 0 27 623 852 1584 0 3 96 0 514 0 2168552 87176 53 0 0 0 198 0 0 487 200 1078 0 1 99 0 517 0 2178752 84040 1523 0 0 0 1261 0 0 512 2660 1320 2 3 96 vmstat -s 3129790854 cpu context switches 1663101011 device interrupts 5504551 software interrupts 9321603 traps 746764672 system calls 54 kernel threads created 66887 fork() calls 9669 vfork() calls 0 rfork() calls 4784 swap pager pageins 5635 swap pager pages paged in 1902 swap pager pageouts 3590 swap pager pages paged out 24668 vnode pager pageins 64050 vnode pager pages paged in 0 vnode pager pageouts 0 vnode pager pages paged out 28140 page daemon wakeups 479450699 pages examined by the page daemon 75270 pages reactivated 2461680 copy-on-write faults 3805 copy-on-write optimized faults 4531914 zero fill pages zeroed 2732630 zero fill pages prezeroed 18095 intransit blocking page faults 8922821 total VM faults taken 0 pages affected by kernel thread creation 8018826 pages affected by fork() 1107169 pages affected by vfork() 0 pages affected by rfork() 491039188 pages freed 393 pages freed by daemon 5744590 pages freed by exiting processes 201969 pages active 184930 pages inactive 17190 pages in VM cache 107624 pages wired down 750 pages free 4096 bytes per page 30979017 total name lookups cache hits (82% pos + 1% neg) system 1% per-directory deletions 0%, falsehits 0%, toolong 0% vmstat -z ITEMSIZE LIMIT USEDFREE REQUESTS UMA Kegs:140,0, 83, 13, 83 UMA Zones: 480,0, 83, 5, 83 UMA Slabs:64,0,2537,177, 225611 UMA RCntSlabs: 104,0, 32769, 13, 2949442 UMA Hash:128,0, 3, 27,6 16 Bucket:76,0, 27, 23, 73 32 Bucket: 140,0, 23, 33, 64 64 Bucket: 268,0, 17, 39, 100 128 Bucket: 524,0, 223, 71, 1036 VM OBJECT: 132,0, 30655, 2318, 1833813 MAP: 192,0, 7, 33,7 KMAP ENTRY: 68,65520, 285, 11251, 78210624 MAP ENTRY:68,0, 215821, 8011, 3882740 PV ENTRY: 24, 2155135, 1391603, 119877, 42095182 DP fakepg:72,0, 0, 53,6 mt_zone:1024,0, 174,126, 174 16: 16,0,2158,684, 578060 32: 32,0,3343,386,87211 64: 64,0,7323,819, 1449967 128: 128,0,3507,333, 519528 256: 256,0,6226,509, 181376 512: 512,0, 64, 96,77544 1024: 1024,0, 55, 73,38283 2048: 2048,0, 141, 27,25379 4096: 4096,0,1990,135,84846 Files:72,0,2924, 1475, 1665330 PROC:524,0,1936,220,76612 THREAD: 372,0,2156, 14, 2156 KSEGRP: 88,0,2156, 84, 2156 UPCALL: 44,0, 0, 0,0 VMSPACE: 300,0,1886,337,76512 mbuf_packet: 256,0, 66135, 0, 1979970489 mbuf:256,0, 7, 1253, 3511131461 mbuf_cluster: 2048,65536, 65538, 0,
slapd - slow starting
Hi, I'm using FreeBSD 6.1-STABLE on i386. I have installed openldap-server , pam_ldap , nss_ldap. During booting and when I do /usr/local/etc/rc.d/slapd.sh start , its taking very long time to start. Here is what I'm getting in logfile: slapd[43485]: daemon: shutdown requested and initiated. slapd[43485]: slapd shutdown: waiting for 0 threads to terminate slapd[43485]: slapd stopped. slapd[52141]: @(#) $OpenLDAP: slapd 2.3.24 (Jul 5 2006 14:04:36) $ [EMAIL PROTECTED]:/usr/ports/net/openldap23-server/work/openldap-2.3.24/servers/slapd slapd[52141]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.1: Can't contact LDAP server Here is my /etc/nsswitch.conf : group: files ldap - - group_compat: nis hosts: files dns networks: files passwd: files ldap - - passwd_compat: nis shells: files When I change it back to : group: compat- - group_compat: nis hosts: files dns networks: files passwd: compat - - passwd_compat: nis shells: files then slapd started fine but I without ldap in nsswitch.conf I cant authenticate users via pam_ldap. /etc/rc.conf : slapd_enable=YES slapd_flags='-h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://0.0.0.0/;' slapd_sockets=/var/run/openldap/ldapi Installed packages: nss_ldap-1.250 openldap-sasl-client-2.3.24 openldap-server-2.3.24 pam_ldap-1.8.2 /usr/local/etc/openldap/slapd.conf # Global section include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/inetorgperson.schema include /usr/local/etc/openldap/schema/nis.schema include /usr/local/etc/openldap/schema/samba.schema include /usr/local/etc/openldap/schema/phpgwaccount.schema include /usr/local/etc/openldap/schema/phpgwcontact.schema ## Added logging parameters loglevel256 pidfile /var/run/openldap/slapd.pid argsfile/var/run/openldap/slapd.args ## Misc security settings password-hash {MD5} # Load dynamic backend modules: modulepath /usr/local/libexec/openldap moduleload back_bdb ### # BDB database definitions ### databasebdb suffix dc=opencraft,dc=local rootdn cn=Manager,dc=opencraft,dc=local rootpw directory /var/db/openldap-data mode0600 # Indices to maintain index objectClass eq index cn,uid,uidNumber,gidNumber,loginShell eq,pres index memberUid eq,pres,sub index phpgwContactOwner pres,eq,sub cachesize 2000 ## ACLs access to dn.exact= by * read access to dn.children=ou=People,dc=opencraft,dc=local attrs=userPassword by self write by dn=cn=Manager,ou=People,dc=opencraft,dc=local write by anonymous auth by * none access to dn.children=ou=People,dc=opencraft,dc=local attrs=entry,children,posixAccount by dn=cn=Manager,ou=People,dc=opencraft,dc=local write by users read by anonymous read access to dn.children=ou=Group,dc=opencraft,dc=local attrs=entry,children,posixGroup by dn=cn=Manager,ou=People,dc=opencraft,dc=local write by users read by anonymous read access to dn.children=ou=People,dc=opencraft,dc=local attrs=mail,telephoneNumber by self write by dn=cn=Manager,ou=People,dc=opencraft,dc=local write by users read by anonymous read access to dn.children=ou=Contacts,dc=opencraft,dc=local by anonymous read by users write access to * by * read Here are my ldap.conf and nss_ldap.conf # @(#)$Id: ldap.conf,v 1.36 2005/03/23 08:29:59 lukeh Exp $ # # This is the configuration file for the LDAP nameservice # switch library and the LDAP PAM module. # # PADL Software # http://www.padl.com # # Your LDAP server. Must be resolvable without using LDAP. # Multiple hosts may be specified, each separated by a # space. How long nss_ldap takes to failover depends on # whether your LDAP client library supports configurable # network or connect timeouts (see bind_timelimit). host 127.0.0.1 # The distinguished name of the search base. base dc=opencraft,dc=local # Another way to specify your LDAP server is to provide an # uri with the server name. This allows to use # Unix Domain Sockets to connect to a local LDAP Server. #uri ldap://127.0.0.1/ #uri ldaps://127.0.0.1/ #uri ldapi://%2fvar%2frun%2fldapi_sock/ # Note: %2f encodes the '/' used as directory separator # The LDAP version to use (defaults to 3 # if supported by client library) #ldap_version 3 # The distinguished name to bind to the server with. # Optional: default is to bind anonymously. #binddn
Re: slapd - slow starting
On Monday 10 July 2006 19:57, Dominik Zalewski wrote: I'm using FreeBSD 6.1-STABLE on i386. I have installed openldap-server , pam_ldap , nss_ldap. During booting and when I do /usr/local/etc/rc.d/slapd.sh start , its taking very long time to start. Here is what I'm getting in logfile: You might want to move the file to /etc/rc.d so it can get started earlier. I changed the headers to look like so too.. # PROVIDE: slapd # REQUIRE: NETWORKING # BEFORE: securelevel # KEYWORD: FreeBSD shutdown My /etc/nsswitch.conf is.. group: files ldap hosts: files dns networks: files passwd: files ldap shells: files -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C pgpxz9GJ2bZ7M.pgp Description: PGP signature
Re: slapd - slow starting
Posted on Mon, 10 Jul 2006 13:27:23 +0300 by author Dominik Zalewski [EMAIL PROTECTED] Here are my ldap.conf and nss_ldap.conf #bind_policy hard Change hard to soft and your problem would go away. -- UEMURA (fka. MAENAKA) Tetsuya [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GEOM problems again...
On 10 jul 2006, at 11.09, Johan Ström wrote: On 21 maj 2006, at 11.16, Johan Ström wrote: Hi I've had problems before with GEOM mirror and my SATA drives, and i've posted about it here before too. The solution seemd to be a change of motherboard, this reduced the crash very much (and also the speeds archieved was greatly improved, from 10-15MB/s to 40-50MB/s..). However after the change i had one or two crashes, but now it has been running for well over 50-60 days or so without any problems. Then, 11 days ago I upgraded to 6.1... And now I got these crashes again (the mirror is crashed that is, the system still runs fine): May 21 02:04:58 elfi kernel: ad6: FAILURE - device detached May 21 02:04:58 elfi kernel: subdisk6: detached May 21 02:04:58 elfi kernel: ad6: detached May 21 02:04:58 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 disconnected. May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=11006308352, length=2048)]error = 6 May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=164847927296, length=131072)]error = 6 May 21 02:04:58 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=256680296448, length=32768)]error = 6 Some info about the controller and disks: May 9 22:46:52 elfi kernel: ata1: ATA channel 1 on atapci0 May 9 22:46:52 elfi kernel: atapci1: nVidia nForce2 Pro SATA150 controller port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0x7f00-0x7f0f ,0x7c0 0-0x7c7f irq 22 at device 11.0 on pci0 May 9 22:46:52 elfi kernel: ad4: 286188MB Maxtor 7L300S0 BANC1G10 at ata2-master SATA150 May 9 22:46:52 elfi kernel: ad6: 286188MB Maxtor 7L300S0 BANC1G10 at ata3-master SATA150 May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1 created (id=4118114647). May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 detected. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 detected. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad6s1 activated. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 activated. May 9 22:46:52 elfi kernel: GEOM_MIRROR: Device gm0s1: provider mirror/gm0s1 launched. May 9 22:46:52 elfi kernel: Trying to mount root from ufs:/dev/ mirror/gm0s1a Anyone got any new clues? Afaik the disks should be working fine (they are 6 months old and this same problem has occured multiple times...) Hope to solve this ;) Thanks Johan Here we go again Jul 7 16:20:09 elfi kernel: ad4: FAILURE - device detached Jul 7 16:20:09 elfi kernel: subdisk4: detached Jul 7 16:20:09 elfi kernel: ad4: detached Jul 7 16:20:09 elfi kernel: GEOM_MIRROR: Device gm0s1: provider ad4s1 disconnected. Jul 7 16:20:09 elfi kernel: g_vfs_done():mirror/gm0s1f[READ (offset=88896847872, length=32768)]error = 6 However no read read timeouts etc as before, just this. 18 days uptime this time (i've rebooted for other reasons since last mail). It always seems to be ad4 that is disconnecting.. I'm going to do some disk tests on it but i doubt it will give anything since i've had similiar problems from day one (did tests at that time w/o problems) with this gmirror setup (new disks). Johan Followup, I ran over the disk with Maxtors own test program, full length test. Not a single problem. After reboot the raid is rebuilding fine: GEOM_MIRROR: Device gm0s1: rebuilding provider ad4s1. As usual it seems i cannot get the controller/driver to redetect the disk using atacontrol etc.. Johan ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable- [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
On Monday 10 July 2006 14:43, Daniel O'Connor wrote: On Monday 10 July 2006 19:57, Dominik Zalewski wrote: I'm using FreeBSD 6.1-STABLE on i386. I have installed openldap-server , pam_ldap , nss_ldap. During booting and when I do /usr/local/etc/rc.d/slapd.sh start , its taking very long time to start. Here is what I'm getting in logfile: You might want to move the file to /etc/rc.d so it can get started earlier. I changed the headers to look like so too.. # PROVIDE: slapd # REQUIRE: NETWORKING # BEFORE: securelevel # KEYWORD: FreeBSD shutdown My /etc/nsswitch.conf is.. group: files ldap hosts: files dns networks: files passwd: files ldap shells: files I did it. No results. Same error messages in logfile. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
On Monday 10 July 2006 14:49, UEMURA (fka. MAENAKA) Tetsuya wrote: Posted on Mon, 10 Jul 2006 13:27:23 +0300 by author Dominik Zalewski [EMAIL PROTECTED] Here are my ldap.conf and nss_ldap.conf #bind_policy hard Change hard to soft and your problem would go away. I did it. No results. Same error messages in logfile. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
On Monday 10 July 2006 14:43, Daniel O'Connor wrote: On Monday 10 July 2006 19:57, Dominik Zalewski wrote: I'm using FreeBSD 6.1-STABLE on i386. I have installed openldap-server , pam_ldap , nss_ldap. During booting and when I do /usr/local/etc/rc.d/slapd.sh start , its taking very long time to start. Here is what I'm getting in logfile: You might want to move the file to /etc/rc.d so it can get started earlier. I changed the headers to look like so too.. # PROVIDE: slapd # REQUIRE: NETWORKING # BEFORE: securelevel # KEYWORD: FreeBSD shutdown My /etc/nsswitch.conf is.. group: files ldap hosts: files dns networks: files passwd: files ldap shells: files Still the same problem. I tried also to change bind_policy to soft. Can you show me your nss_ldap.conf ? Problem is after I change things in /dev/nsswitch.conf. If I live it like this: group: compat hosts: files dns networks: files passwd: compat shells: files I start slapd using /etc/rc.d/slapd start , then I change /etc/nsswitch.conf to: group: files ldap hosts: files dns networks: files passwd: files ldap shells: files Everything is fine and users can login via ssh using their ldap password. I can boot server with first configuration and run some script that will copy second nsswitch.conf , but I dont like this solution and I dont understand why its not working. Any help welcome :) Dominik ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
Dominik Zalewski [EMAIL PROTECTED] writes: Hi, Problem is after I change things in /dev/nsswitch.conf. If I live it like this: group: compat passwd: compat I start slapd using /etc/rc.d/slapd start , then I change /etc/nsswitch.conf to: group: files ldap passwd: files ldap Everything is fine and users can login via ssh using their ldap password. I can boot server with first configuration and run some script that will copy second nsswitch.conf , but I dont like this solution and I dont understand why its not working. Chicken Egg problem, the system queries the ldap backend to get informations about the account it will use to start the ldap backend. I've made a change to /etc/rc.d/slapd that copies a ldap disabled nsswitch.conf to /etc in start_precmd() and then a ldap enabled nsswitch.conf to /etc in start_postcmd(). I've tried to toy with backend options in nsswitch.conf but no luck atm. Seems I'm not alone, see [EMAIL PROTECTED] regarding nsswitch.conf problem with group status code group: files [success=return notfound=continue unavail=continue tryagain=continue] ldap passwd: files [success=return notfound=continue unavail=continue tryagain=continue] ldap Regards Éric Masson -- l'anarchie, c'est pt'etre pas genial comme mode de gouvernement, mais c'est mieux que pas de gouvernement du tout. -+- Kevin in http://www.le-gnu.net -+- Ni Root, ni Maître. -+- ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
iwi(4) in RELENG_6
Is the iwi driver going to be synced with rev. 1.3x of HEAD? I'm using 1.36 along with a RELENG_6 tree, since it works better (read: it works). From the HEAD commit messages I understand that some MFCs would've been in order by now. Are there any show-stoppers that push that schedule ahead ? -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
Posted on Mon, 10 Jul 2006 15:27:39 +0200 by author Eric Masson [EMAIL PROTECTED] Chicken Egg problem, the system queries the ldap backend to get informations about the account it will use to start the ldap backend. Indeed. So that by adding `bind_policy soft' to nss_ldap.conf to force nss to quit querying immediately if LDAP server isn't ready. Note that by default, LDAP server tries to resolv user:ldap and group:ldap, and of course both must be resolvable without LDAP server itself, add user:ldap and group:ldap to /etc files. Anyway, my nss_ldap.conf has only the follwing 4 lines, FYI. [EMAIL PROTECTED] grep -vE '^#|^$' /usr/local/etc/nss_ldap.conf base dc=ldapserver uri ldapi://%2fvar%2frun%2fopenldap%2fldapi/ bind_timelimit 5 bind_policy soft [EMAIL PROTECTED] ls -laR /var/run/openldap/ total 8 drwxrwxr-x 2 root ldap512 Jul 9 00:13 . drwxr-xr-x 8 root wheel 1024 Jul 11 00:14 .. srwxrwxrwx 1 root ldap 0 Jul 9 00:13 ldapi -rw-r--r-- 1 ldap ldap 94 Jul 9 00:13 slapd.args -rw-r--r-- 1 ldap ldap 6 Jul 9 00:13 slapd.pid -- UEMURA (fka. MAENAKA) Tetsuya [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL and default memory limits (mysqld: Out of memory)
Mike Jakubik wrote: [ ... ] Why are the limits so low by default? In any case, this is what i found in LINT. options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) I have no idea what those values mean, what should i set them to to be safe? A limit 768MB should work for me. 512MB is more than enough for almost all processes to run just fine, and is only really inappropriate for the case where you've got 1-plus GB of physical RAM and want to dedicate the system to a single large task, or perhaps a single-digit number of processes if you've got several GB of physical RAM. -- -Chuck PS: On the other hand, as time passes and 64-bit hardware with 4+ GB of RAM becomes more common, this 512MB limit starts resembling the 640K is more than enough comment from years past. Core memory used to cost a dollar a bit, rather than a dollar a megabit today, but that was before my time... :-) ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slapd - slow starting
On Monday 10 July 2006 22:30, Dominik Zalewski wrote: Still the same problem. I tried also to change bind_policy to soft. Can you show me your nss_ldap.conf ? Ah yes, that's the fix.. I have these in nss_ldap.conf timeout 5 bind_timeout5 bind_policy soft -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C pgpbjTQgZm10a.pgp Description: PGP signature
Re: iwi(4) in RELENG_6
On Monday 10 July 2006 16:40, Vlad GALU wrote: Is the iwi driver going to be synced with rev. 1.3x of HEAD? I'm using 1.36 along with a RELENG_6 tree, since it works better (read: it works). From the HEAD commit messages I understand that some MFCs would've been in order by now. Are there any show-stoppers that push that schedule ahead ? no. The only thing that bugs me a bit, is that the change will break POLA for people using the old version. I have yet to hear from somebody using that successfully, though. I will get on MFCing it later today. -- /\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News pgp3dTcOo1C4r.pgp Description: PGP signature
Re: MySQL and default memory limits (mysqld: Out of memory)
Hi, IMHO on servers 2G is common these these days, and 4G will be common very soon. As people use the websites and the internet more, the needed resources are growing fast. This 512MB will be soon revised imho. :) For example I run a little hosting server for my company and 2 years ago a 2,4Ghz xeon was more than enough. This year I had to replace that machine with an X2100 with 2G RAM because of the customer needs. The number of the pages hadn't grown significally, just the number of served pages and of course the mysql databases. Andras Chuck Swiger wrote: Mike Jakubik wrote: [ ... ] Why are the limits so low by default? In any case, this is what i found in LINT. options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) I have no idea what those values mean, what should i set them to to be safe? A limit 768MB should work for me. 512MB is more than enough for almost all processes to run just fine, and is only really inappropriate for the case where you've got 1-plus GB of physical RAM and want to dedicate the system to a single large task, or perhaps a single-digit number of processes if you've got several GB of physical RAM. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
rdesktop fails on 6.1-RELEASE-p3
Hi, net/rdesktop is failing no matter what I do, I just portsnapped my ports and here is what I get: === Building for rdesktop-1.4.1 cc -O -pipe -march=pentium3 -Wall -I/usr/local/include -I/usr/X11R6/include -DPACKAGE_NAME=\rdesktop\ -DPACKAGE_TARNAME= \rdesktop\ -DPACKAGE_VERSION=\1.4.1\ -DPACKAGE_STRING=\rdesktop\ 1.4.1\ -DPACKAGE_BUGREPORT=\\ -DSTDC_HEADERS=1 -DL_ENDIAN=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LANGINFO_H=1 -Dssldir=\/usr/local\ -DEGD_SOCKET= \/var/run/egd-pool\ -DWITH_RDPSND=1 -DHAVE_DIRENT_H=1 -DHAVE_DECL_DIRFD=1 -DHAVE_ICONV=1 -DICONV_CONST=const -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MOUNT_H=1 -DSTAT_STATVFS=1 -DHAVE_STRUCT_STATVFS_F_NAMEMAX=1 -DKEYMAP_PATH= \/usr/local/share/rdesktop/keymaps/\ -o rdp.o -c rdp.c rdp.c: In function `rdp_out_unistr': rdp.c:164: error: syntax error before iconv_h rdp.c:171: error: `iconv_h' undeclared (first use in this function) rdp.c:171: error: (Each undeclared identifier is reported only once rdp.c:171: error: for each function it appears in.) rdp.c:171: error: `iconv_t' undeclared (first use in this function) rdp.c:174: warning: implicit declaration of function `iconv_open' rdp.c:183: warning: implicit declaration of function `iconv' rdp.c:186: warning: implicit declaration of function `iconv_close' rdp.c: In function `rdp_in_unistr': rdp.c:239: error: syntax error before iconv_h rdp.c:243: error: `iconv_h' undeclared (first use in this function) rdp.c:243: error: `iconv_t' undeclared (first use in this function) gmake: *** [rdp.o] Error 1 *** Error code 2 I guess you need: uname -a FreeBSD redevil 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #1: Mon Jul 10 17:55:45 AST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP i386 pkg_info -x gettext Information for gettext-0.14.5_2: Comment: GNU gettext package Required by: ORBit-0.5.17_3 ORBit2-2.14.0_1 acroread7-7.0.1_2,1 akode-plugins-mpc-2.0,1 anjuta-1.2.4_5 arts-1.5.3_1,1 aspell-0.60.4_3 at-spi-1.7.7_1 atk-1.11.4_1 avahi-0.6.10_3 bash-3.1.17 bison-1.75_2,1 bonobo-1.0.22_2 bugbuddy-2.14.0 cdparanoia-3.9.8_8 cdrtools-2.01_5 coreutils-5.2.1 cssed-0.4.0 cups-1.2.0 cups-base-1.2.0_2 cups-pstoraster-8.15 dbus-0.62 desktop-file-utils-0.11 dirmngr-0.9.3_2 dvd+rw-tools-6.1 dvdrip-0.52.7 e17-theme-blokkie-0.1 e17-theme-cthulhain-0.2.1 e17-theme-detour-0.4 e17-theme-japan2007-0.9.5 eel-2.14.1 ekiga-2.0.1_2 en-openoffice.org-US-2.0.2 enchant-1.2.5 enlightenment-0.16.999.027 eog-2.14.2 ettercap-gtk2-0.7.3_3,1 evolution-2.6.2_1 evolution-data-server-1.6.2 file-roller-2.14.3,1 firefox-1.5.0.4,1 firefox-2.0.a3_1,1 fontforge-20060413 gail-1.8.11_1 gaim-1.5.0_5 gal-0.24_2 gamin-0.1.7_2 gcalctool-5.7.32,2 gconf-1.0.9_8 gconf2-2.14.0_2 gdbm-1.8.3_2 gdk-pixbuf-0.22.0_4 gdm-2.14.8 gedit-2.14.3 gftp-2.0.18_2 gimp-2.2.11,1 glib-2.10.3 glibmm-2.10.4 glibwww-0.2_3 gmake-3.81_1 gnet2-2.0.7_2 gnome-cups-manager-0.31_3,1 gnome-desktop-2.14.2_1 gnome-doc-utils-0.6.1 gnome-icon-theme-2.14.2 gnome-keyring-0.4.9 gnome-libs-1.4.2_5 gnome-menus-2.14.0 gnome-mime-data-2.4.2 gnome-print-0.37_2 gnome-spell-1.0.7_1 gnome-vfs-2.14.2_3 gnupg-1.4.3 gnupg-devel-1.9.20_1 gnutls-1.4.0 gpgme-1.0.3_1 gqview-2.0.1_1 gstreamer-0.10.8 gstreamer-ffmpeg-0.10.1 gstreamer-plugins-0.10.8,1 gstreamer-plugins-a52dec-0.10.3_1,1 gstreamer-plugins-cdparanoia-0.10.8_2,1 gstreamer-plugins-core-0.10_6 gstreamer-plugins-dts-0.10.3_1,1 gstreamer-plugins-dts80-0.8.12_1 gstreamer-plugins-dvd-0.10.3,1 gstreamer-plugins-dvd80-0.8.12_2 gstreamer-plugins-esound-0.10.3_1,1 gstreamer-plugins-flac-0.10.3_1,1 gstreamer-plugins-gconf-0.10.3_3,1 gstreamer-plugins-gnomevfs-0.10.8_1,1 gstreamer-plugins-good-0.10.3_4,1 gstreamer-plugins-jpeg-0.10.3_1,1 gstreamer-plugins-libpng-0.10.3_1,1 gstreamer-plugins-mad-0.10.3_2,1 gstreamer-plugins-ogg-0.10.8_1,1 gstreamer-plugins-pango-0.10.8_1,1 gstreamer-plugins-theora-0.10.8_2,1 gstreamer-plugins-vorbis-0.10.8_1,1 gstreamer-plugins-xvid-0.10.3,1 gstreamer-plugins-xvid80-0.8.12_1 gstreamer-plugins80-0.8.12_2 gstreamer80-0.8.12_1 gtar-1.15.1_2 gthumb-2.6.9_1 gtk-1.2.10_15 gtk-2.8.19 gtk-engines2-2.6.9 gtk-gnutella-0.96.1 gtk-sharp-1.0.10_8 gtkglext-1.2.0 gtkhtml-1.1.10_5 gtkhtml3-3.10.2 gtkmm-2.2.12_6 gtkmm-2.8.8 gtksourceview-1.6.1_1 gtkspell2-2.0.11_3 help2man-1.36.4_1 hydra-5.2 imlib-1.9.15_3 inkscape-0.44 inti-1.2_6 irssi-0.8.10_2 iso-codes-0.51.1.1 k3b-0.12.16 kdeaddons-konq-plugins-3.5.3 kdebase-3.5.3_4 kdebase-kompmgr-3.5.3 kdelibs-3.5.3 kdemultimedia-3.5.3 kdemultimedia-mpeglib_artsplug-3.5.3 kdenetwork-3.5.3_2 kdepim-3.5.3 libIDL-0.8.6_2 liba52-0.7.4_1 libbonobo-2.14.0_2 libbonoboui-2.14.0_1 libcapplet-1.4.0.5_3 libcdio-0.77 libcroco-0.6.1 libdnet-1.10_1 libdv-0.104_1 libdvdcss-1.2.9_2 libexif-0.6.13 libgcrypt-1.2.2_1 libgda-0.2.96_4 libglade-0.17_4 libglade2-2.5.1_5 libgnome-2.14.1_1
Re: MySQL and default memory limits (mysqld: Out of memory)
Chuck Swiger wrote: 512MB is more than enough for almost all processes to run just fine, and is only really inappropriate for the case where you've got 1-plus GB of physical RAM and want to dedicate the system to a single large task, or perhaps a single-digit number of processes if you've got several GB of physical RAM. Such as a database server. I just think it would be nicer if this limit was dynamically set, based on your configuration. Just like MAXUSERS was a kernel variable, it is now dynamically set based on your resources. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: iwi(4) in RELENG_6
On 7/10/06, Max Laier [EMAIL PROTECTED] wrote: On Monday 10 July 2006 16:40, Vlad GALU wrote: Is the iwi driver going to be synced with rev. 1.3x of HEAD? I'm using 1.36 along with a RELENG_6 tree, since it works better (read: it works). From the HEAD commit messages I understand that some MFCs would've been in order by now. Are there any show-stoppers that push that schedule ahead ? no. The only thing that bugs me a bit, is that the change will break POLA for people using the old version. I have yet to hear from somebody using that successfully, though. I will get on MFCing it later today. Thanks, Max! -- /\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL and default memory limits (mysqld: Out of memory)
Mike Jakubik wrote: Chuck Swiger wrote: 512MB is more than enough for almost all processes to run just fine, and is only really inappropriate for the case where you've got 1-plus GB of physical RAM and want to dedicate the system to a single large task, or perhaps a single-digit number of processes if you've got several GB of physical RAM. Such as a database server. Yes, exactly. :-) Database servers are a rather specialized role which differs in tuning requirements from normal general purpose/interactive use workloads substantially, and it is common for databases to work much better after the system has been tuned appropriately. This is partially because many databases want to do their own filesystem management and control their own VM/paging behavior, which are uncommon requirements. I just think it would be nicer if this limit was dynamically set, based on your configuration. Just like MAXUSERS was a kernel variable, it is now dynamically set based on your resources. Yes, well, autotuning is nice but sometimes there isn't an obviously correct value for this limit which is appropriate for all circumstances. Anyone doing virtual hosting needs to keep this kind of thing under tighter control, for example. Setting the value lower is beneficial for some cases because it prevents memory leaks in C code or the system libraries, or bloated Java VM's, etc, from stealing too many resources from other processes. -- -Chuck ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Writing application
Hi, I have installed freeBSD 5.5 and am connected to the net now. I would like to install apache and devlop some application from there. How should i start writing my application, execute it. I even make to figure out what folder to write application and how to deal with it. Thank you -- What we see depends mainly on what we look for. -MIHIR ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Writing application
Mihir Sanghavi wrote: Hi, I have installed freeBSD 5.5 and am connected to the net now. I would like to install apache and devlop some application from there. How should i start writing my application, execute it. I even make to figure out what folder to write application and how to deal with it. Thank you http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ Provides a good start -Proto ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Writing application
cd /usr/ports/www/apache13 make install clean should install apache and all it's dependancies for you. As for writing your applications, I can't even begin to help without more info. Perhaps you should search for information on your programming language of choice. You can write your application in any folder you want, but a likely place might be either your home directory or a subdirectory of your apache's document root (depending on the application's...uh...application) which defaults to /usr/local/www/data-dist/ On 7/10/06, Mihir Sanghavi [EMAIL PROTECTED] wrote: Hi, I have installed freeBSD 5.5 and am connected to the net now. I would like to install apache and devlop some application from there. How should i start writing my application, execute it. I even make to figure out what folder to write application and how to deal with it. Thank you -- What we see depends mainly on what we look for. -MIHIR ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: em device hangs on ifconfig alias ...
Pyun YongHyeon said the following on 7/7/06 8:32 PM: On Fri, Jul 07, 2006 at 10:38:01PM +0100, Robert Watson wrote: Yes -- basically, there are two problems: (1) A little problem, in which an arp announcement is sent before the link has settled after reset. (2) A big problem, in which the interface is gratuitously recent requiring long settling times. I'd really like to see a fix to the second of these problems (not resetting when an IP is added or removed, resulting in link renegotiation); the first one I'm less concerned about, although it would make some amount of sense to do an arp announcement when the link goes up. Ah, I see. Thanks for the insight. How about the attached patch? This patch seems to fix both of the issues, or at least this is what I see now: - the card no longer gets reset when adding an alias; - the arp packet gets delivered; - adding 250 aliases takes less than a second; I haven't fully tested whether all 250 IP aliases were accessible (I used non-routable IP addresses), but I suppose so. Also I couldn't stress the patched driver enough to see whether it performs as expected. But in overall it looks good. I guess some more testing might be needed in order to merge the patch into the source tree. Regards, Atanas Index: if_em.c === RCS file: /pool/ncvs/src/sys/dev/em/if_em.c,v retrieving revision 1.116 diff -u -r1.116 if_em.c --- if_em.c 6 Jun 2006 08:03:49 - 1.116 +++ if_em.c 8 Jul 2006 03:30:36 - @@ -67,6 +67,7 @@ #include netinet/in_systm.h #include netinet/in.h +#include netinet/if_ether.h #include netinet/ip.h #include netinet/tcp.h #include netinet/udp.h @@ -692,6 +693,9 @@ EM_LOCK_ASSERT(sc); + if ((ifp-if_drv_flags (IFF_DRV_RUNNING|IFF_DRV_OACTIVE)) != + IFF_DRV_RUNNING) + return; if (!sc-link_active) return; @@ -745,6 +749,7 @@ { struct em_softc *sc = ifp-if_softc; struct ifreq *ifr = (struct ifreq *)data; + struct ifaddr *ifa = (struct ifaddr *)data; int error = 0; if (sc-in_detach) @@ -752,9 +757,22 @@ switch (command) { case SIOCSIFADDR: - case SIOCGIFADDR: - IOCTL_DEBUGOUT(ioctl rcv'd: SIOCxIFADDR (Get/Set Interface Addr)); - ether_ioctl(ifp, command, data); + if (ifa-ifa_addr-sa_family == AF_INET) { + /* +* XXX +* Since resetting hardware takes a very long time +* we only initialize the hardware only when it is +* absolutely required. +*/ + ifp-if_flags |= IFF_UP; + if (!(ifp-if_drv_flags IFF_DRV_RUNNING)) { + EM_LOCK(sc); + em_init_locked(sc); + EM_UNLOCK(sc); + } + arp_ifinit(ifp, ifa); + } else + error = ether_ioctl(ifp, command, data); break; case SIOCSIFMTU: { @@ -802,17 +820,19 @@ IOCTL_DEBUGOUT(ioctl rcv'd: SIOCSIFFLAGS (Set Interface Flags)); EM_LOCK(sc); if (ifp-if_flags IFF_UP) { - if (!(ifp-if_drv_flags IFF_DRV_RUNNING)) { + if ((ifp-if_drv_flags IFF_DRV_RUNNING)) { + if ((ifp-if_flags ^ sc-if_flags) + IFF_PROMISC) { + em_disable_promisc(sc); + em_set_promisc(sc); + } + } else em_init_locked(sc); - } - - em_disable_promisc(sc); - em_set_promisc(sc); } else { - if (ifp-if_drv_flags IFF_DRV_RUNNING) { + if (ifp-if_drv_flags IFF_DRV_RUNNING) em_stop(sc); - } } + sc-if_flags = ifp-if_flags; EM_UNLOCK(sc); break; case SIOCADDMULTI: @@ -878,8 +898,8 @@ break; } default: - IOCTL_DEBUGOUT1(ioctl received: UNKNOWN (0x%x), (int)command); - error = EINVAL; + error = ether_ioctl(ifp, command, data); + break; } return (error); Index: if_em.h === RCS file: /pool/ncvs/src/sys/dev/em/if_em.h,v retrieving revision 1.44 diff -u -r1.44 if_em.h --- if_em.h 15 Feb 2006 08:39:50
Re: em device hangs on ifconfig alias ...
On Mon, 10 Jul 2006, Patrick M. Hausen wrote: Mornin'! On Mon, Jul 10, 2006 at 12:11:36AM -0400, Mike Tancsa wrote: Not sure what STP is Spanning Tree Protocol. Having the link go up and down would cause the switch port to block traffic for a period of time. Of course, any reasonable administrator would configure interface FastEthernet0/1 spanning-tree portfast 'k, I know nothing about Cisco but do have access to change my configs (knowing nothing tends to keep me from doing too much playing) ... what does the above do, exactly? Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
How to use mozilla
Hi, I have installed Mozilla in the www folder. I ran make installl and clean. I would like to know to use the browser -- What we see depends mainly on what we look for. -MIHIR ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
bce0: Error mapping mbuf into TX chain!
I would periodically get this message and have the interface go unresponsive. An up/down wouldn't reset it. Updating to rev 1.4 of if_bce.c seems to fix it. Is this suitable for MFC to -STABLE? -- Eric Hodel - [EMAIL PROTECTED] - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: em device hangs on ifconfig alias ...
On Mon, Jul 10, 2006 at 05:55:23PM -0300, User Freebsd wrote: On Mon, 10 Jul 2006, Patrick M. Hausen wrote: Mornin'! On Mon, Jul 10, 2006 at 12:11:36AM -0400, Mike Tancsa wrote: Not sure what STP is Spanning Tree Protocol. Having the link go up and down would cause the switch port to block traffic for a period of time. Of course, any reasonable administrator would configure interface FastEthernet0/1 spanning-tree portfast 'k, I know nothing about Cisco but do have access to change my configs (knowing nothing tends to keep me from doing too much playing) ... what does the above do, exactly? It tells the switch that this port will never be anything but a leaf in the tree so STP does not need to re run before allowing packets to flow. If you do this and then create a loop with it, bad things happen, but cisco recommends it in general. -- Brooks -- Any statement of the form X is the one, true Y is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 pgpYgOwJoPkFT.pgp Description: PGP signature
Great Home for Home School Family
__ Great Home for Home Schoolers *GREAT HOME FOR HOME SCHOOL FAMILY* Lots more photos. HomePage 1 PhotosPage 2 PhotosPage 3 PhotosPage 4 PhotosPage 5 PhotosPage 6 Photos One of a kind. $189,000. Rural northwest Kansas, Norton County. One and one-half miles north of U.S. 36 on the County Line between Norton and Phillips Counties. Good neighbors around but not too close. Nearest neighbors 2 miles away. The rural life is hard to beat. No need to lock your doors. (If you lock your car doors while you shop in town, people will look at you funny, and most people just leave their car keys in the ignition.) DSL available. Great place to raise children. Great place to homeschool (Kansas is easy, and there are homeschoolers in the area). Driveway runs one-third mile from house to all weather county road, very little rural traffic. Driveway is one and one-half miles from U.S. 36. Half-way between the two county seats of Norton and Phillips County. Three miles to Prairie View where there is an auto repair shop and post office. Two-story house with furnaces on both floors. Air conditioned on first floor. Two bedrooms air-conditioned upstairs. Four 500 gallon propane tanks. Emergency propane generator and emergency wall heater that requires no electricity. 500 gallon gas tank. (We never lost power, but with children we wanted to be well set up in the event of loss of power, especially in the winter time). 15 acres, fenced, horse corral, great place for horses (we had several). Fenced dog area we used for our two German shepherds. 40 x 140 machine shed. 10 x 12 wash house we made into a little storage house. It has windows and could be used in the summer for sleeping. We used it for storage. In excellent shape: Inside mostly all new in last five years, carpets, bathrooms. All new paint three years ago. Recently retouched up inside and out. Roof new five years ago. The Norton Correctional Facility (a few miles away) is usually hiring (785-877-3389). Call David Marmon with any questions. 888-374-2332 (if you get a message, it will say tax-exempt-status.com.) Lots more photos. HomePage 1 PhotosPage 2 PhotosPage 3 PhotosPage 4 PhotosPage 5 PhotosPage 6 Photos -- You may automatically unsubscribe from this list at any time by visiting the following URL: http://shalomvillage.com/cgi-bin/dada/mail.cgi/u/home_schoolers/ 1807 Second Street Suite #64 Santa Fe, NM 87505 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bce0: Error mapping mbuf into TX chain!
On Mon, Jul 10, 2006 at 02:48:07PM -0700, Eric Hodel wrote: I would periodically get this message and have the interface go unresponsive. An up/down wouldn't reset it. Updating to rev 1.4 of if_bce.c seems to fix it. Is this suitable for MFC to -STABLE? Maybe the author is busy for real life thing? I've CCed to him and I'll MFC it if he allows me to do the MFC. -- Regards, Pyun YongHyeon ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL and default memory limits (mysqld: Out of memory)
From Mike Jakubik [EMAIL PROTECTED], Sun, Jul 09, 2006 at 05:53:38PM -0400: Mathieu Arnold wrote: | Exactly, its nice being able to see the current values. How else can i | see what the values are set to? As I previously said, it's 512M on i386, and 1G on 64 bit platforms. Right, this explains why my amd64 system works just fine. Shouldn't this be a dynamic value based on total amount of ram? Say 70% of RAM, I mean servers have plenty of RAM nowadays, this seems like an old hard limit, which many new users will trip over I set my value to 805306368, and mysql seems to be happy now. maxdsiz sets the largest brk(2) allocation. mmap(2) allocations are made from virtual addresses above maxdsiz. Raising maxdsiz squeezes mmap and lowering it squeezes brk. The system allocator (phkmalloc) uses the brk system call to get memory--as do many other allocators but notable not ptmalloc2 or the new 7.x jmalloc IMO, the kernel is just being obnoxious here. It would be better if the mmap address space allocation algorithm just tried to work from the stack down (growing toward the brk where-ever it happened to be). What is old and out of date is that the amount of physical RAM has caught up to the size of the virtual address space of a process. Historically, it was cheap/free to use a boundary like this. Now i386 is on its last legs and thus the wastefulness (in exchange for simplicity) has a noticable cost. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL and default memory limits (mysqld: Out of memory)
From Mike Jakubik [EMAIL PROTECTED], Mon, Jul 10, 2006 at 01:16:47PM -0400: Chuck Swiger wrote: 512MB is more than enough for almost all processes to run just fine, and is only really inappropriate for the case where you've got 1-plus GB of physical RAM and want to dedicate the system to a single large task, or perhaps a single-digit number of processes if you've got several GB of physical RAM. Such as a database server. I just think it would be nicer if this limit was dynamically set, based on your configuration. Just like MAXUSERS was a kernel variable, it is now dynamically set based on your resources. This is nonsense. maxdsiz is not related to rlimit per se. There is no way to examine a system's hardware to pick this value. The proper value depends entirely on whether your programs place more load on brk or mmap. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: em device hangs on ifconfig alias ...
At 04:55 PM 10/07/2006, User Freebsd wrote: 'k, I know nothing about Cisco but do have access to change my configs (knowing nothing tends to keep me from doing too much playing) ... what does the above do, exactly? Spanning tree is there to prevent switch loops as well as allow for redundant paths with switches among other things. If you are just putting a non bridge device in the port it should be safe to put the switch port in portfast mode so when there is a link transition, the port does not block traffic for 20 seconds on that vlan. ---Mike ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]