Re: ichsmb compile problem

2006-02-12 Thread Peter Jeremy
On Sat, 2006-Feb-11 21:32:28 +0100, Restynszki Zsolt wrote:
>Sorry about my e-mail, but I have a big problem with ichsmb kernel driver.
>I try to compile to my kernel, but in FreeBSD 5.4-STABLE version required 
>smbus_if.h and smbus_if.c files missing, so make depend fails.

Those files are built as part of the kernel build process.  Can you please
explain how you are attempting to compile the kernel.

-- 
Peter Jeremy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NSSWITCH errors in /var/log/cron

2006-02-12 Thread Ceri Davies


On 12 Feb 2006, at 00:31, Brandon Fosdick wrote:

I have several machines running 6-STABLE that are showing the error  
listed below in /var/log/cron every few minutes. Google didn't turn  
up much of relevance, other than the fact that this might be  
related to disabling NIS. And, in fast, I have NO_NIS=true in /etc/ 
make.conf on every single box.

Is this a bug or a feature? Is it harmful?

The error messages are...

Feb 11 16:25:00 poseidon /usr/sbin/cron[95789]: (root) CMD (/usr/ 
libexec/atrun)
Feb 11 16:25:00 poseidon cron[95789]: NSSWITCH(nss_method_lookup):  
nis, group_compat, setgrent, not found
Feb 11 16:25:00 poseidon cron[95789]: NSSWITCH(nss_method_lookup):  
nis, group_compat, endgrent, not found
Feb 11 16:25:00 poseidon cron[95789]: NSSWITCH(nss_method_lookup):  
nis, passwd_compat, endpwent, not found


What does your nsswitch.conf look like, and does removing the NIS  
entries fix it?


Ceri
--
That must be wonderful!  I don't understand it at all.
  -- Moliere





PGP.sig
Description: This is a digitally signed message part


Re: gmirror/disk problems!

2006-02-12 Thread Johan Ström

On 10 feb 2006, at 07.43, Johan Ström wrote:



On 10 feb 2006, at 07.15, Johan Ström wrote:


Hi list!

I've been experiencing problems earlier with gmirror (thread "Page  
fault, GEOM problem??"). My gmirror crashed, and the box  
compleatly froze.
Now I got a new mobo, and it has been working great since (no  
crashes, and i get decent 40-50mb/s read/write instead of ~10-20).

This morning i woke up to this:


subdisk4: detached
ad4: detached
unknown: TIMEOUT - READ_DMA retrying (1 retry left) LBA=187595536
unknown: timeout waiting to issue command
unknown: error issueing READ_DMA command
GEOM_MIRROR: Device gm0s1: provider ad4s1 disconnected.
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=134373376, length=16384)]
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=134438912, length=16384)]
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=268591104, length=16384)]
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=268607488, length=16384)]
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=268656640, length=16384)]
GEOM_MIRROR: Request failed (error=6). ad4s1[WRITE 
(offset=5966399488, length=2048)]
GEOM_MIRROR: Request failed (error=5). ad4s1[READ 
(offset=96048882176, length=32768)]


Just like "old times"... However, no page faults! Yay.. But.. what  
is going on here?? Why does the atacontroler or whatever think they
need to detach my disk?? And how do i reattach it? I have tried  
some stuff with atacontrol:


$ atacontrol list
ATA channel 0:
Master: acd0  ATA/ATAPI revision 0
Slave:   no device present
ATA channel 1:
Master:  no device present
Slave:   no device present
ATA channel 2:
Master:  no device present
Slave:   no device present
ATA channel 3:
Master:  ad6  Serial ATA v1.0
Slave:   no device present
$ atacontrol attach ata2
atacontrol: ioctl(IOCATAATTACH): File exists
$ atacontrol reinit ata2
< here i get a long system wide block>
Master:  no device present
Slave:   no device present
$

Okay so no luck reiniting it.. I dont realy wanna reboot the box  
(each time this might happen).. But im happy that it doesnt crash  
totally anymore heh...


dmesg of current system:


Feb  2 19:39:09 elfi syslogd: kernel boot file is /boot/kernel/kernel
Feb  2 19:39:09 elfi kernel: Copyright (c) 1992-2005 The FreeBSD  
Project.
Feb  2 19:39:09 elfi kernel: Copyright (c) 1979, 1980, 1983, 1986,  
1988, 1989, 1991, 1992, 1993, 1994
Feb  2 19:39:09 elfi kernel: The Regents of the University of  
California. All rights reserved.
Feb  2 19:39:09 elfi kernel: FreeBSD 6.0-RELEASE #2: Thu Dec  1  
20:18:30 CET 2005
Feb  2 19:39:09 elfi kernel: [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/GENERIC

Feb  2 19:39:09 elfi kernel: ACPI APIC Table: 
Feb  2 19:39:09 elfi kernel: Timecounter "i8254" frequency 1193182  
Hz quality 0
Feb  2 19:39:09 elfi kernel: CPU: AMD Athlon(tm) XP  (1200.01-MHz  
686-class CPU)
Feb  2 19:39:09 elfi kernel: Origin = "AuthenticAMD"  Id = 0x662   
Stepping = 2
Feb  2 19:39:09 elfi kernel:  
Features=0x383fbffE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
Feb  2 19:39:09 elfi kernel: AMD Features=0xc0480800+,3DNow+,3DNow>

Feb  2 19:39:09 elfi kernel: real memory  = 536674304 (511 MB)
Feb  2 19:39:09 elfi kernel: avail memory = 515833856 (491 MB)
Feb  2 19:39:09 elfi kernel: ioapic0  irqs 0-23 on  
motherboard

Feb  2 19:39:09 elfi kernel: npx0: [FAST]
Feb  2 19:39:09 elfi kernel: npx0:  on motherboard
Feb  2 19:39:09 elfi kernel: npx0: INT 16 interface
Feb  2 19:39:09 elfi kernel: acpi0:  on motherboard
Feb  2 19:39:09 elfi kernel: acpi0: Power Button (fixed)
Feb  2 19:39:09 elfi kernel: pci_link0:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link1:  irq 5  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link2:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link3:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link4:  irq 11  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link5:  irq 5  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link6:  irq 5  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link7:  irq 3  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link8:  irq 5  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link9:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link10:  irq  
11 on acpi0
Feb  2 19:39:09 elfi kernel: pci_link11:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link12:  irq 5  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link13:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link14:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: pci_link15:  irq  
10 on acpi0
Feb  2 19:39:09 elfi kernel: pci_link16:  irq 0  
on acpi0
Feb  2 19:39:09 elfi kernel: Timecounter "ACPI-fast" frequency  
3579545 Hz quality 1000
Feb  2 19:39:09 elfi kernel: acpi_timer0: <24-bit timer at  
3.579545MHz> port 0x4008-0x400b on acpi0

Feb  2 19:39:09 elfi kernel: cpu0:  on acpi0
Feb  2 19:39:09 elfi kernel: acpi_throttle0:   
on cpu0
Feb  2 19:39:09 elfi kernel: pcib0:  port  
0xcf8-0xcff on acpi0

F

problem with pkg_version

2006-02-12 Thread Sebastian Stach
When using pkg_version with the -o argument to print the origin
instead of the package name it doesn't work correct.

# pkg_version -o
(output stripped)
x11/xorg=
x11/xorg=
x11/xorg=
(output stripped)

The output should be:

# pkg_version -o
(output stripped)
x11/xorg=
x11/xorg-clients=
x11/xorg-documents  =
(output stripped)

Looking at the code in "/usr/src/usr.sbin/pkg_install/version/perform.c"
in function "show_version" pkg_version removes everything after the last
"-" from the origin.

if (ShowOrigin != FALSE)
strlcpy(tmp, plist.origin, PATH_MAX);
else
strlcpy(tmp, plist.name, PATH_MAX);
if (!Verbose) {
if ((ch = strrchr(tmp, '-')) != NULL)
ch[0] = '\0';
}


I think this shouldn't be done in the "ShowOrigin" case.
The attached patch fixed it for me.
--- usr.sbin/pkg_install/version/perform.c.orig Sun Feb 12 14:43:48 2006
+++ usr.sbin/pkg_install/version/perform.c  Sun Feb 12 14:51:59 2006
@@ -261,11 +261,12 @@
return;
 if (ShowOrigin != FALSE)
strlcpy(tmp, plist.origin, PATH_MAX);
-else
+else {
strlcpy(tmp, plist.name, PATH_MAX);
-if (!Verbose) {
-   if ((ch = strrchr(tmp, '-')) != NULL)
-   ch[0] = '\0';
+   if (!Verbose) {
+   if ((ch = strrchr(tmp, '-')) != NULL)
+   ch[0] = '\0';
+   }
 }
 if (latest == NULL) {
if (source == NULL && OUTPUT('!')) {
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: problem with pkg_version

2006-02-12 Thread Kirill Ponomarew
On Sun, Feb 12, 2006 at 03:51:50PM +0100, Sebastian Stach wrote:
> When using pkg_version with the -o argument to print the origin
> instead of the package name it doesn't work correct.
> 
> # pkg_version -o
> (output stripped)
> x11/xorg=
> x11/xorg=
> x11/xorg=
> (output stripped)
> 
> The output should be:
> 
> # pkg_version -o
> (output stripped)
> x11/xorg=
> x11/xorg-clients=
> x11/xorg-documents  =
> (output stripped)
> 
> Looking at the code in "/usr/src/usr.sbin/pkg_install/version/perform.c"
> in function "show_version" pkg_version removes everything after the last
> "-" from the origin.

[snip]

Yeah, it seems I broke it in rev. 1.13, sorry for that, the fix will
be committed.

-Kirill
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ichsmb compile problem

2006-02-12 Thread John Nielsen
On Saturday 11 February 2006 15:32, Restyánszki Zsolt wrote:
> Dear FreeBSD develpers!
>
> Sorry about my e-mail, but I have a big problem with ichsmb kernel
> driver. I try to compile to my kernel, but in FreeBSD 5.4-STABLE version
> required smbus_if.h and smbus_if.c files missing, so make depend fails.
>
> Thats my request: can You send me a compiled version of ichsmb or if you
> have a representative of smbus_if sources, can you send me those files?

Make sure that your kernel config file includes "device smbus" and "device 
smb" as well ass "device ichsmb".  See also the ichsmb(4) manpage.

JN
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Freebsd 6 ntfs write ?

2006-02-12 Thread Z.C.B.
On Mon, 6 Feb 2006 17:52:59 -0700 (MST)
"RYAN M. vAN GINNEKEN" <[EMAIL PROTECTED]> wrote:

> Hello all i am woundering if ntfs write works yet in fbsd 6?
> 
> FreeBSD t9100.computerking.ca 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE
> #0: Sat Feb  4 22:02:58 MST 2006
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/T9100  i386
> 
> i have added the following to my /etc/fstab 
> 
> /dev/ad0s1  /mnt/winxprontfsrw
> 0   0
> 
> but get errors when tring to delete files
> 
> 
> su-2.05b# rm wepkeys.txt
> rm: wepkeys.txt: Operation not supported

Check out the ntfsprogs. It can provide fuse support for mounting
ntfs partitions. No clue how good it is though.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: ichsmb compile problem

2006-02-12 Thread Restyánszki Zsolt
Thank you! The "device smbus" missed from my configuratins. 
 
RZs



Feladó: John Nielsen [mailto:[EMAIL PROTECTED]
Küldve: 2006.02.12., V 17:30
Címzett: freebsd-stable@freebsd.org
Másolatot kap: Restyánszki Zsolt
Tárgy: Re: ichsmb compile problem



On Saturday 11 February 2006 15:32, Restyánszki Zsolt wrote:
> Dear FreeBSD develpers!
>
> Sorry about my e-mail, but I have a big problem with ichsmb kernel
> driver. I try to compile to my kernel, but in FreeBSD 5.4-STABLE version
> required smbus_if.h and smbus_if.c files missing, so make depend fails.
>
> Thats my request: can You send me a compiled version of ichsmb or if you
> have a representative of smbus_if sources, can you send me those files?

Make sure that your kernel config file includes "device smbus" and "device
smb" as well ass "device ichsmb".  See also the ichsmb(4) manpage.

JN


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: questions about building releng_6

2006-02-12 Thread Yar Tikhiy
On Sun, Feb 12, 2006 at 01:29:10AM -0600, Z.C.B. wrote:
> I was just looking at building releng_6 on a releng_5 box. What I am
> wondering about is how to specify a location other than /usr/obj and

Just set the MAKEOBJDIRPREFIX variable in the environment to the
desired path, and the build system will use it instead of /usr/obj.
Keep in mind that you cannot set it on the make command line or in
make.conf, it must be set in the environment.  Also note that you
still can use /usr/obj if the RELENG_5 and RELENG_6 sources are at
different locations, like /usr/src and /usr/src-6, because the binaries
will be built in /usr/obj/usr/src and /usr/obj/usr/src-6, respectively.

> once I get it built, how do I do a install to a different path.

Just set DESTDIR (can be either an environment or make variable)
to the destination path.

> The 6.0 release has a bit of a problem booting on the board I have and
> was just looking at trying out releng_6 and seeing how it would go.

Note here that in order to get a new functional 6.x system while
keeping your 5.x system, you'll have to install 6.x to a free slice
or disk labelled, newfs'd, and mounted, e.g., under /mnt.  Unlike
with some other operating systems, you cannot easily have several
working FreeBSD installations in the same file tree: each FreeBSD
installation needs a tree of its own: /, /boot, /etc, /bin, /usr,
and all that.

-- 
Yar
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NSSWITCH errors in /var/log/cron

2006-02-12 Thread Brandon Fosdick

Ceri Davies wrote:
What does your nsswitch.conf look like, and does removing the NIS 
entries fix it?


Somebody else pointed out that changing "compat" to "files" for the group and 
passwd lines silences the error. It appears to be working.

Thanks.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Manual root filesystem specification

2006-02-12 Thread Julius Hacker
Hello,

I've installed a 6.0 here on my computer.
Alright, all works fine but at boot time I've to specify manually a root
filesystem.

I checked the harddrive already with fsck in single user mode but the
partition is clean.

The entry in my /etc/fstab looks like this:
 /dev/ad0s1a/   ufs rw  11

Can you please help me with this problem?

-- 
Regards
Julius Hacker

http://www.julius-hacker.de
[EMAIL PROTECTED]

OpenPGP-Key-ID: 0x4B4A486E

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Odd performance problems after upgrade from 4.11 to 6.0-Stable

2006-02-12 Thread Kevin Oberman
> Kevin Oberman wrote:
> I recently upgraded my last desktop system from 4.11-Stable to
> 6.0-Stable. I did an update to 5.3 then to RELENG_5,
> RELENG_6_0_0_RELEASE and on to RELENG6_0.
>
> This system has been updated regularly from the days of at least 4.1.
> The hardware is a 1GHz PIII with an ICH2 chipset. 256 MB of memory. 
>
> After the upgrade, the system performs poorly. Specifically, it seems to
> be blocking on I/O. If I have a dump or bsdtar running, a CPU intensive
> job produced minimal CPU utilization and little progress. The system is
> 70% or more idle all of the time. X is particularly sluggish. Many times
> the system will simply appear to be locked up for seconds at a time like
> all of the I/O is synchronous and the entire system is blocking on GIANT
> until the disk write finishes. A level 0 dump of the system drive piped
> through gzip and over the network took about 10 hours. Now it is 17
> hours. My network link only ran at 3.4 Mbps (yes, that's bits, not
> Bytes) over a 100 Mbps connection to the storage server. The rate was
> much higher under 4.11.
>
> My attempts to track down the source of the problem simply failed. I
> have examined my kernel configuration and found nothing out of the
> ordinary. In fact, the the configuration varies from GENERIC only in
> devices (both added and deleted), dropping 486 and 586 CPU code and a
> larger SC_HISTORY. I have nothing in sysctl.conf and only enable DMA on
> my ATAPI devices in loader.conf. I have confirmed that the disks are
> running ATA100.
>
> Any suggestions on where to look? At this point I am baffled.

Well, I have tracked the problem down a bit. It happens when the system
runs out of memory and starts to use the swap file. The glimpse indexing
operation is very memory intensive and under V6 it simply crawls when it
starts paging. On my old 256 MB system, this operation was taking over 6
hours. On my new system (1 GB), it takes about 7 minutes. 

This is not really a surprise. I know how running out of memory slows
things down. What does bother me is why it went from 6 hours in V4 14
hours on V6.

Unfortunately, my old box is going away in two weeks and I doubt that
I'll have much time to look at things before then. All I can say is
that either the wired memory for V6 is up so much that I page and swap a
lot mote or that the operations have slowed down way more than they
should have.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: questions about building releng_6

2006-02-12 Thread Z.C.B.
On Sun, 12 Feb 2006 23:17:13 +0300
Yar Tikhiy <[EMAIL PROTECTED]> wrote:

> On Sun, Feb 12, 2006 at 01:29:10AM -0600, Z.C.B. wrote:
> > I was just looking at building releng_6 on a releng_5 box. What I
> > am wondering about is how to specify a location other
> > than /usr/obj and
> 
> Just set the MAKEOBJDIRPREFIX variable in the environment to the
> desired path, and the build system will use it instead of /usr/obj.
> Keep in mind that you cannot set it on the make command line or in
> make.conf, it must be set in the environment.  Also note that you
> still can use /usr/obj if the RELENG_5 and RELENG_6 sources are at
> different locations, like /usr/src and /usr/src-6, because the
> binaries will be built in /usr/obj/usr/src and /usr/obj/usr/src-6,
> respectively.
> 
> > once I get it built, how do I do a install to a different path.
> 
> Just set DESTDIR (can be either an environment or make variable)
> to the destination path.
> 
> > The 6.0 release has a bit of a problem booting on the board I
> > have and was just looking at trying out releng_6 and seeing how
> > it would go.
> 
> Note here that in order to get a new functional 6.x system while
> keeping your 5.x system, you'll have to install 6.x to a free slice
> or disk labelled, newfs'd, and mounted, e.g., under /mnt.  Unlike
> with some other operating systems, you cannot easily have several
> working FreeBSD installations in the same file tree: each FreeBSD
> installation needs a tree of its own: /, /boot, /etc, /bin, /usr,
> and all that.

Yeah. Going to be installing it to a gmirrored drive that all ready
sliced up for this. :)

Thanks for the info on this.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Odd performance problems after upgrade from 4.11 to 6.0-Stable

2006-02-12 Thread Peter Jeremy
On Sun, 2006-Feb-12 18:27:47 -0800, Kevin Oberman wrote:
>This is not really a surprise. I know how running out of memory slows
>things down. What does bother me is why it went from 6 hours in V4 14
>hours on V6.

It could be that glimpse's memory access pattern makes it very
sensitive to the available RAM and a slight reduction is causing a
massive slowdown.

>Unfortunately, my old box is going away in two weeks and I doubt that
>I'll have much time to look at things before then. All I can say is
>that either the wired memory for V6 is up so much that I page and swap a
>lot mote or that the operations have slowed down way more than they
>should have.

Whilst you have access to the box, it might be useful to capture some
of the VM subsystem information for both 4.x and 6.x (eg a couple of
'sysctl vm' at known intervals) under stress.  This might help
identify where the problem is.

-- 
Peter Jeremy
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"