Re: GIANT_LOCK in release7.0

2008-11-27 Thread Kris Kennaway

Alexander K. Beros wrote:


I have not been able to find any discussion of the following issue.  Ever
since I upgraded to release 7.0, whenever I print to my network printer (I
am using Samba) I get the following output to ttyv0:

lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]

... this can continue for a very long time depending on the size of the
queue

The actual printing is fine, and since I am rarely at the terminal it isn't
a serious problem.  In fact, if I am working at the server and someone else
is sending jobs to the printer I switch over to ttyv1, so there is really no
inconvenience.

On the other hand, I thought that release 7 is GIANT_LOCK free, so this is
rather unexpected.  I would appreciate any information or explanation.


That's not a correct statement.  The giant lock is not invoked in most 
code pathways, but it is still present in some corners of the kernel, 
for example in some drivers.  It's not important for drivers like lpt 
which are low performance devices.


Do you get any additional diagnostics when you boot in verbose mode 
(boot -v from loader, or use the menu option)?  It might be that lpt is 
encountering an error frequently and resetting itself during I/O.


Also please follow up with your entire dmesg.

Kris

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


GIANT_LOCK in release7.0

2008-11-25 Thread Alexander K. Beros


I have not been able to find any discussion of the following issue.  Ever
since I upgraded to release 7.0, whenever I print to my network printer (I
am using Samba) I get the following output to ttyv0:

lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]
lpt0: [GIANT-LOCKED]
lpt0: [ITHREAD]

... this can continue for a very long time depending on the size of the
queue

The actual printing is fine, and since I am rarely at the terminal it isn't
a serious problem.  In fact, if I am working at the server and someone else
is sending jobs to the printer I switch over to ttyv1, so there is really no
inconvenience.

On the other hand, I thought that release 7 is GIANT_LOCK free, so this is
rather unexpected.  I would appreciate any information or explanation.

In the printout below, you will note SMALLKERNEL7, this is just a paring
down of the generic kernel to tailor it to my system.  The behaviour I
discuss above occurs with the default kernel as well.

Thanks in advance and best regards,
Alex Beros

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Wed Nov 12 14:10:45 PST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMALLKERNEL7
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel Pentium III (730.90-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x683  Stepping = 3
  Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMO
V,PAT,PSE36,MMX,FXSR,SSE
real memory  = 469499904 (447 MB)
avail memory = 449888256 (429 MB)
kbd1 at kbdmux0
acpi0: GATEWA EA81510A on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 1bf0 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82815 (i815 GMCH) host to PCI bridge on hostb0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci2: PCI bus on pcib1

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