Operating System - HP-UX
1846591 Members
2370 Online
110256 Solutions
New Discussion

kernel parameter that affects lp spooler

 
Anthony Villanueva
Frequent Advisor

kernel parameter that affects lp spooler

My print jobs intermittently get stuck in the queue. The printer displays "busy" but doesn't print out. Whenever I disable/enable the problematic printer the print jobs get printed.

I found a message thread( http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=814713 ) that said they did some tweaking in the kernel but it doesn't say where. Does anybody know of where to tweak the kernel to prevent these print jobs from getting stuck in the queue?
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: kernel parameter that affects lp spooler

post the output of kmtune

There are no DIRECTLY related kernel parameters, but there could be issues with certian parameters that might cause issues with applications.

Did you follow Geoff Wild's advice on that previous thread??

live free or die
harry d brown jr
Live Free or Die
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

hi harry, yes i turned on the verbose. what happens is that the problematic printer doesn't show up in lpstat or in the log file. it only shows up after i disable/enable that printer. No other helpful messages in the log files either
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

Here are the parameters set in my machine
Parameter Current Dyn Planned Module Version
===============================================================================
NSTRBLKSCHED - - 2
NSTREVENT 50 - 50
NSTRPUSH 16 - 16
NSTRSCHED 0 - 0
STRCTLSZ 1024 - 1024
STRMSGSZ 65535 - 65535
acctresume 4 - 4
acctsuspend 2 - 2
aio_listio_max 256 - 256
aio_max_ops 2048 - 2048
aio_physmem_pct 10 - 10
aio_prio_delta_max 20 - 20
allocate_fs_swapmap 0 - 0
alwaysdump 1 - 1
bcvmap_size_factor 2 - 2
bootspinlocks - - 256
bufcache_hash_locks 128 - 128
bufpages 0 - (NBUF*2)
chanq_hash_locks 256 - 256
core_addshmem_read 0 Y 0
core_addshmem_write 0 Y 0
create_fastlinks 0 - 0
dbc_max_pct 20 - 20
dbc_min_pct 5 - 5
default_disk_ir 0 - 0
desfree - - 0
disksort_seconds 0 - 0
dmp_rootdev_is_vol 0 - 0
dmp_swapdev_is_vol 0 - 0
dnlc_hash_locks 512 - 512
dontdump 0 - 0
dskless_node - - 0
dst 1 - 1
effective_maxpid - - ((NPROC<=30000)?30000:(NPROC*5/4))
eisa_io_estimate - - 0x300
enable_idds 0 - 0
eqmemsize 15 - 15
executable_stack 1 - 1
fcp_large_config 0 - 0
file_pad - - 10
fs_async 0 - 0
ftable_hash_locks 64 - 64
hdlpreg_hash_locks 128 - 128
hfs_max_ra_blocks 8 - 8
hfs_max_revra_blocks 8 - 8
hfs_ra_per_disk 64 - 64
hfs_revra_per_disk 64 - 64
hp_hfs_mtra_enabled 1 - 1
hpux_aes_override - - 0
initmodmax 50 - 50
io_ports_hash_locks 64 - 64
iomemsize - - 40000
ksi_alloc_max 16544 - (NPROC*8)
ksi_send_max 32 - 32
lotsfree - - 0
max_async_ports 50 - 50
max_fcp_reqs 512 - 512
max_mem_window 0 - 0
max_thread_proc 64 - 64
maxdsiz 0x10000000 - 0x10000000
maxdsiz_64bit 0x40000000 - 0X40000000
maxfiles 1000 - 1000
maxfiles_lim 2048 Y 2048
maxqueuetime - - 0
maxssiz 0x800000 - 0X800000
maxssiz_64bit 0x800000 - 0X800000
maxswapchunks 1024 - 1024
maxtsiz 0x4000000 Y 0X4000000
maxtsiz_64bit 0x40000000 Y 0X40000000
maxuprc 2048 Y 2048
maxusers 256 - 256
maxvgs 10 - 10
mesg 1 - 1
minfree - - 0
modstrmax 500 - 500
msgmap 42 - (2+MSGTQL)
msgmax 8192 Y 8192
msgmnb 16384 Y 16384
msgmni 50 - 50
msgseg 2048 - 2048
msgssz 8 - 8
msgtql 40 - 40
nbuf 0 - 0
ncallout 3651 - (16+NKTHREAD)
ncdnode 150 - 150
nclist 4196 - (100+16*MAXUSERS)
ncsize 7612 - (NINODE+VX_NCSIZE)+(8*DNLC_HASH_LOCKS)
ndilbuffers 30 - 30
netisr_priority - - -1
netmemmax - - 0
nfile 4136 - (16*(NPROC+16+MAXUSERS)/10+32+2*(NPTY+NSTRPTY+NSTRTEL))
nflocks 200 - 200
nhtbl_scale 0 - 0
ninode 2492 - ((NPROC+16+MAXUSERS)+32+(2*NPTY))
nkthread 3635 - (((NPROC*7)/4)+16)
nni - - 2
no_lvm_disks 0 - 0
nproc 2068 - (20+8*MAXUSERS)
npty 60 - 60
nstrpty 60 - 60
nstrtel 60 - 60
nswapdev 10 - 10
nswapfs 10 - 10
nsysmap 4136 - ((NPROC)>800?2*(NPROC):800)
nsysmap64 4136 - ((NPROC)>800?2*(NPROC):800)
o_sync_is_o_dsync 0 - 0
page_text_to_local - - 0
pfdat_hash_locks 128 - 128
public_shlibs 1 - 1
region_hash_locks 128 - 128
remote_nfs_swap 0 - 0
rtsched_numpri 32 - 32
scroll_lines 100 - 100
scsi_max_qdepth 8 Y 8
scsi_maxphys 1048576 - 1048576
sema 1 - 1
semaem 16384 - 16384
semmap 198 - (SEMMNI+2)
semmni 196 - 196
semmns 8192 - 8192
semmnu 1536 - 1536
semmsl 2048 Y 2048
semume 128 - 128
semvmx 32767 - 32767
sendfile_max 0 - 0
shmem 1 - 1
shmmax 0x4000000 Y 0X4000000
shmmni 256 - 256
shmseg 128 Y 128
st_ats_enabled 0 - 0
st_fail_overruns 0 - 0
st_large_recs 0 - 0
st_san_safe 0 - 0
streampipes 0 - 0
swapmem_on 1 - 1
swchunk 2048 - 2048
sysv_hash_locks 128 - 128
tcphashsz 0 - 0
timeslice 10 - (100/10)
timezone 420 - 420
unlockable_mem 0 - 0
vas_hash_locks 128 - 128
vnode_cd_hash_locks 128 - 128
vnode_hash_locks 128 - 128
vol_checkpt_default 10240 - 10240
vol_dcm_replay_size 262144 - (256*1024)
vol_default_iodelay 50 - 50
vol_fmr_logsz 4 - 4
vol_max_bchain 32 - 32
vol_max_nconfigs 20 - 20
vol_max_nlogs 20 - 20
vol_max_nmpool_sz 4194304 - (4*1024*1024)
vol_max_prm_dgs 1024 - 1024
vol_max_rdback_sz 4194304 - (4*1024*1024)
vol_max_vol 8388608 - (8*1024*1024)
vol_maxio 256 - 256
vol_maxioctl 32768 - 32768
vol_maxkiocount 2048 - 2048
vol_maxparallelio 256 - 256
vol_maxspecialio 256 - 256
vol_maxstablebufsize 256 - 256
vol_min_lowmem_sz 524288 - (512*1024)
vol_mvr_maxround 256 - 256
vol_nm_hb_timeout 10 - (10)
vol_subdisk_num 4096 - 4096
vol_vvr_transport 1 - (1)
vol_vvr_use_nat 0 - (0)
volcvm_cluster_size 16 - 16
volcvm_smartsync 1 - 1
voldrl_max_drtregs 2048 - 2048
voldrl_min_regionsz 512 - 512
voliomem_chunk_size 65536 - (64*1024)
voliomem_maxpool_sz 4194304 - (4*1024*1024)
voliot_errbuf_dflt 16384 - 16384
voliot_iobuf_default 8192 - 8192
voliot_iobuf_limit 131072 - 131072
voliot_iobuf_max 65536 - 65536
voliot_max_open 32 - 32
volraid_rsrtransmax 1 - 1
vps_ceiling 16 - 16
vps_chatr_ceiling 1048576 - 1048576
vps_pagesize 4 - 4
vx_fancyra_enable 0 - 0
vx_maxlink 32767 - 32767
vx_ncsize 1024 - 1024
vx_ninode 0 - 0
vxfs_max_ra_kbytes 1024 - 1024
vxfs_ra_per_disk 1024 - 1024
vxtask_max_monitors 32 - 32
harry d brown jr
Honored Contributor

Re: kernel parameter that affects lp spooler

swlist -l patch PHCO_29209

what /usr/bin/lp


ie:

[root@vpart1 /var/appl]# swlist -l patch PHCO_29209
# Initializing...
# Contacting target "vpart1"...
#
# Target: vpart1:/
#

# PHCO_29209 1.0 lpspool subsystem cumulative patch
# PHCO_29209.LP-SPOOL 1.0 PrinterMgmt.LP-SPOOL applied
[root@vpart1 /var/appl]#



[root@vpart1 /tmp]# what /usr/bin/lp
/usr/bin/lp:
lp.c $Date: 2003/07/09 01:48:56 $Revision: r11.11/5 PATCH_11.11 (PHCO_29209)
request.c $Date: 2002/07/24 07:56:42 $Revision: r11.11/2 PATCH_11.11 (PHCO_27020)
$Revision: @(#) all CUP11.11_BL2003_0722_1 PATCH_11.11 PHCO_29209
Tue Jul 22 08:59:22 PDT 2003 $
[root@vpart1 /tmp]#


If you don't have the patch PHCO_29209, then you should apply at LEAST the latest GOLD bundle: http://www6.itrc.hp.com/service/patch/releaseIndexPage.do?BC=patch.breadcrumb.main|patch.breadcrumb.bundle



Consider jacking up the kernel parameters ninode, nproc and nfile. This is an example of what I have them set to:
ninode 5148
nproc 4100
nfile 51548


also, see this document: http://docs.hp.com/en/5990-8172/5990-8172.pdf


live free or die
harry d brown jr
Live Free or Die
Steve Steel
Honored Contributor

Re: kernel parameter that affects lp spooler

Hi


Sounds like corruption


remove and readd the printer


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

Hi Harry,

yes i have that patch installed and what's the "what" for? anyway, it produced a similar output as you typed.

i will be increasing those parameters you mentioned this weekend and see if anything happens.

anything else?

thanks!
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

Hi Steve,

I believe I've already done that. Anyway, I'll do that to another one of my printers. By the way, just a thought, I didn't think that there would be corruption since I am able to print. It's just that sometimes the print jobs get stuck in the queue. any other insights?
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

I get this message from syslog.log:
inetd[10569]: bootps/udp: bind: Address already in use.

What does this mean?
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

Hi,

I've changed my kernel parameters:

nfile : 4136 to 8272
ninode : 2492 to 4984
nproc : 2068 to 4136

but the problem remains.

Also I tried removing and re-adding the printer, with and without the BSD option checked. Still same problem.

After about 2 to 3 successful print jobs, the queue gets stuck.
Anthony Villanueva
Frequent Advisor

Re: kernel parameter that affects lp spooler

Thanks everyone!

I just had to reinstall the sw that acts as TCP Print server in my remote printer.