100% cpu utilization
Joan Carles Soler
Joan.Soler at uv.es
Mon Nov 26 06:30:04 GMT 2001
I'm experimenting same problem in Linux. Our system is:
- Debian stable
- 2.4.3 with xfs=20
- 2 PIII Comermine 670Mz
- 1GB RAM
This is our student server. The students run programs that are very
CPU intensive (matlab, gcc etc) via xterminals. matlab some times get
100% of CPU.
The server acts as PDC of 100 clients.=20
I have experimenting 100% CPU utilization with 2.2.1a and 2.2.2
The problems begin when i activate de PDC validation for the users.
After i not have problems when the server acts as a file server.
I send you some logs and my smb.conf . If you whant more
detailed logs please send me the parameters you whant...
(sorry but my englis is very poor... :) ....)
Joan Carles Soler
Joan.Soler at uv.es
=== log.smbd ==================================
[2001/11/23 15:35:05, 1] smbd/service.c:close_cnum(650)
fmatem517 (147.156.23.10) closed connection to service netlogon
[2001/11/23 15:35:07, 1] smbd/service.c:make_connection(610)
fmatem517 (147.156.23.10) connect to service netlogon as user alumno
(uid=3D307, gid=3D500) (pid 21053)
[2001/11/23 15:37:04, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level =3D 1 (pid 21081 from pid 21081)
[2001/11/23 15:37:04, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level =3D 1 (pid 21081 from pid 21081)
[2001/11/23 15:37:04, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level =3D 1 (pid 21081 from pid 21081)
[2001/11/23 15:37:04, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level =3D 1 (pid 21081 from pid 21081)
[2001/11/23 15:37:04, 1] smbd/service.c:make_connection(610)
mate3 (147.156.22.117) connect to service netlogon as user alumno
(uid=3D307, gid=3D500) (pid 21081)
[2001/11/23 15:37:04, 1] smbd/service.c:make_connection(610)
mate3 (147.156.22.117) connect to service alumno as user alumno
(uid=3D307, gid=3D500) (pid 21081)
[2001/11/23 15:37:04, 1] smbd/service.c:make_connection(610)
mate3 (147.156.22.117) connect to service public as user alumno
(uid=3D307, gid=3D500) (pid 21081)
[2001/11/23 15:37:07, 1] smbd/service.c:close_cnum(650)
mate3 (147.156.22.117) closed connection to service netlogon
[2001/11/23 15:37:07, 1] smbd/service.c:make_connection(610)
mate3 (147.156.22.117) connect to service netlogon as user alumno
(uid=3D307, gid=3D500) (pid 21081)
[2001/11/23 15:37:08, 0] smbd/oplock.c:request_oplock_break(1047)
request_oplock_break: error in response received to oplock break
request to pid 20246 on port 36158 for dev =3D 3a00, inode =3D 20623381,
tv_sec =3D 3bfe54c0, tv_usec =3D a4d1d
Error was (Llamada al sistema interrumpida).
[2001/11/23 15:37:08, 0] smbd/open.c:open_mode_check(510)
open_mode_check: FAILED when breaking oplock (3) on file
optica/garciafj/blur.mat, dev =3D 3a00, inode =3D 20623381
[2001/11/23 15:37:08, 0] smbd/oplock.c:process_local_message(371)
process_local_message: Received unsolicited break reply - dumping
info.
[2001/11/23 15:37:08, 0] smbd/oplock.c:process_local_message(386)
process_local_message: unsolicited oplock break reply from pid
21053, port 36158, dev =3D 3a00, inode =3D 20623381
[2001/11/23 15:37:17, 1] smbd/service.c:close_cnum(650)
aulacal4 (147.156.22.190) closed connection to service netlogon
[2001/11/23 15:37:51, 1] smbd/service.c:close_cnum(650)
mate3 (147.156.22.117) closed connection to service alumno
[2001/11/23 15:37:51, 1] smbd/service.c:close_cnum(650)
mate3 (147.156.22.117) closed connection to service public
..........
=== log.smbd =====================================================
......
INFO: Debug class all level =3D 1 (pid 14521 from pid 14521)
[2001/11/26 10:01:24, 1] smbd/service.c:make_connection(610)
auma38 (147.156.23.12) connect to service netlogon as user aruiz
(uid=3D22785, gid=3D500) (pid 14521)
[2001/11/26 10:01:25, 1] smbd/service.c:make_connection(610)
auma38 (147.156.23.12) connect to service aruiz as user aruiz
(uid=3D22785, gid=3D500) (pid 14521)
[2001/11/26 10:01:25, 1] smbd/service.c:make_connection(610)
auma38 (147.156.23.12) connect to service public as user aruiz
(uid=3D22785, gid=3D500) (pid 14521)
[2001/11/26 10:01:28, 1] smbd/service.c:close_cnum(650)
auma38 (147.156.23.12) closed connection to service netlogon
[2001/11/26 10:01:36, 1] lib/debug.c:debug_message(247)
INFO: Debug class all level =3D 1 (pid 14380 from pid 14380)
[2001/11/26 10:02:08, 1] smbd/service.c:close_cnum(650)
mate18 (147.156.22.136) closed connection to service netlogon
[2001/11/26 10:02:15, 1] smbd/service.c:close_cnum(650)
raspa (147.156.23.53) closed connection to service fmatem01
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
auma5 (147.156.22.21) closed connection to service instalar
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate1 (147.156.22.115) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate1 (147.156.22.115) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal7 (147.156.22.196) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal7 (147.156.22.196) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
auma38 (147.156.23.12) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal5 (147.156.22.193) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
auma38 (147.156.23.12) closed connection to service aruiz
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal5 (147.156.22.193) closed connection to service alumno
aulacal3 (147.156.22.188) closed connection to service public
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal3 (147.156.22.188) closed connection to service alumno
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis63 (147.156.10.21) closed connection to service instalar
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal1 (147.156.22.184) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal1 (147.156.22.184) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis43 (147.156.22.60) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis43 (147.156.22.60) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis45 (147.156.22.59) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis45 (147.156.22.59) closed connection to service aruiz
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis47 (147.156.22.217) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis47 (147.156.22.217) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate18 (147.156.22.136) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate18 (147.156.22.136) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis50 (147.156.22.113) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis50 (147.156.22.113) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate11 (147.156.22.140) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate11 (147.156.22.140) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate8 (147.156.22.121) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate8 (147.156.22.121) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal4 (147.156.22.190) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal4 (147.156.22.190) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal9 (147.156.22.198) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
aulacal9 (147.156.22.198) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis49 (147.156.22.194) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis49 (147.156.22.194) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis48 (147.156.22.166) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis48 (147.156.22.166) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate4 (147.156.22.118) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate4 (147.156.22.118) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate15 (147.156.22.123) closed connection to service netlogon
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate15 (147.156.22.123) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
mate15 (147.156.22.123) closed connection to service dacruzvi
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
yield_connection: tdb_delete for name failed with error Record does
not exist.
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis41 (147.156.22.65) closed connection to service public
[2001/11/26 10:02:35, 1] smbd/service.c:close_cnum(650)
alufis41 (147.156.22.65) closed connection to service alumno
[2001/11/26 10:02:35, 0] smbd/connection.c:yield_connection(63)
==== smb.conf ==============================================
; /etc/smb.conf
;
; Sample configuration file for the Samba suite for Debian GNU/Linux
;
; Please see the manual page for smb.conf for detailed description of
; every parameter.
;
[global]
#Per a previndre la infdccio del nimda
#veto files =3D /*.eml/*.nws/riched20.dll/
Printing =3D lprng
printcap name =3D /etc/printcap
load printers =3D yes
; guest account =3D nobody
; invalid users =3D root
; "security =3D user" is always a good idea. This will require a Unix
account
; in this server for every user accessing the server.
security =3D user
; security =3D server
; password server =3D servifama2 servifama
; Change this for the workgroup your Samba server will part of
workgroup =3D fmatem
; server string =3D %h server (Samba %v)
server string =3D Servidor de la facultat de matematiques
; If you want Samba to log though syslog only then set the following
; parameter to 'yes'. Please note that logging through syslog in
; Samba is still experimental.
syslog only =3D no
log level =3D 1
;log file =3D /var/log/smb.%m
; We want Samba to log a minimum amount of information to syslog.
Everything
; should go to /var/log/{smb,nmb} instead. If you want to log
through
; syslog you should set the following parameter to something
higher.
syslog =3D 0;
; This socket options really speed up Samba under Linux, according to
my
; own tests.
; afegisc tambe opccions d'optimitzaci=F3
; socket options =3D IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=3D4096
SO_RCVBUF=3D4096
; socket options =3D SO_SNDBUF=3D16384 SO_RCVBUF=3D16384
level2 oplocks =3D yes
read size =3D 65536
; Passwords are encrypted by default. This way the latest Windows 95
and NT
; clients can connect to the Samba server with no problems.
; encrypt passwords =3D yes
;proves per a contraseyna en clar o no clara
netbios aliases =3D abacus
include =3D /etc/samba/%L.conf
; encrypt passwords =3D no
; update encrypted =3D yes
; It's always a good idea to use a WINS server. If you want this
server
; to be the WINS server for your network change the following
parameter
; to "yes". Otherwise leave it as "no" and specify your WINS
server
; below (note: only one Samba server can be the WINS server).
; Read BROWSING.txt for more details.
wins support =3D no
; If this server is not the WINS server then specify who is it and
uncomment
; next line.
wins server =3D 147.156.1.46
; Please read BROWSING.txt and set the next four parameters according
; to your network setup. There is no valid default so they are
commented
; out.
domain master =3D yes
local master =3D yes
preferred master =3D yes
; What naming service and in what order should we use to resolve host
names
; to IP addresses
name resolve order =3D wins lmhosts host bcast
; This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy =3D no
; Name mangling options
preserve case =3D yes
short preserve case =3D yes
; This boolean parameter controlls whether Samba attempts to sync. the
Unix
; password with the SMB password when the encrypted SMB password
in the
; /etc/samba/smbpasswd file is changed.
;unix password sync =3D yes
; For Unix password sync. to work on a Debian GNU/Linux system, the
following
; parameters must be set (thanks to Augustin Luton
; <aluton at hybrigenics.fr> for sending the correct chat script
for
; the passwd program in Debian Potato).
passwd program =3D /usr/bin/passwd %u
passwd chat =3D *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
; The following parameter is useful only if you have the linpopup
package
; installed. The samba maintainer and the linpopup maintainer
are
; working to ease installation and configuration of linpopup and
samba.
message command =3D /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm
%s' &
; The default maximum log file size is 5 MBytes. That's too big so
this
; next parameter sets it to 1 MByte. Currently, Samba rotates
log
; files (/var/log/{smb,nmb} in Debian) when these files reach
1000 KBytes.
; A better solution would be to have Samba rotate the log file
upon
; reception of a signal, but for now on, we have to live with
this.
max log size =3D 10000
comment =3D Servidor facultat de matematiques
map to guest =3D never
password level =3D 0
null passwords =3D no
dead time =3D 0
; Parametres per al control del domini
; domain logons =3D yes
; logon script =3D netlogon.bat
; domain admin group =3D @adm
; logon path =3D \\servifama2\profiles\%U
; logon home =3D \\servifama2\%U\.profiles
; fem el servidor servidor de temps
time server =3D yes
; optimitzacions
read raw =3D yes
write raw =3D yes
[homes]
comment =3D Directoris personals
browseable =3D no
; By default, the home directories are exported read only. Change next
; parameter to "no" if you want to be able to write to them.
read only =3D no
; File creation mask is set to 0700 for security reasons. If you want
to
; create files with group=3Drw permissions, set next parameter to
0775.
create mask =3D 0700
; Directory creation mask is set to 0700 for security reasons. If you
want to
; create dirs. with group=3Drw permissions, set next parameter to
0775.
directory mask =3D 0700
available =3D yes
public =3D no
writable =3D yes
only user =3D no
; Recurs de sols lectura per a que els professors deixen dades als
alumnes
[public]
available =3D yes
browseable =3D yes
path =3D /home/public
public =3D no
guest only =3D no
writable =3D yes
only user =3D no
valid users =3D @ci @fmatem @fmatema @uv
comment =3D Dades dels professors per als alumnes
#[aula1]
# available =3D yes
# browseable =3D yes
# path =3D /home/aula1
# public =3D no
# guest only =3D no
# writable =3D yes
# only user =3D no
# ;write list =3D ciadm,jsoler
# valid users =3D @ci @fmatem @fmatema @uv
# comment =3D Programes de les aules inform=E0tiques
[printers]
#admin users =3D pastorm aruiz kike jsoler
guest ok =3D yes
comment =3D All Printers
browseable =3D no
path =3D /tmp
printable =3D yes
public =3D no
writable =3D no
create mode =3D 0700
available =3D yes
write list =3D @ci @fmatem @fmatema @uv
valid users =3D @ci @fmatem @fmatema @uv
[netlogon]
locking =3D no
public =3D no
browseable =3D yes
available =3D yes
#path =3D /home/samba/netlogon/%G
path =3D /home/samba/maquines/%m
write list =3D jsoler
[instalar]
available =3D yes
browseable =3D yes
path =3D /home/instalar
public =3D no
guest only =3D no
writable =3D yes
only user =3D no
write list =3D @siucb @siuct @siucbi @ci
valid users =3D @siucb @siuct @siucbi @ci
comment =3D instal.lacio de programes
fake oplocks =3D yes
[apps]
available =3D yes
browseable =3D yes
path =3D /home/apps
public =3D no
guest only =3D no
writable =3D yes
only user =3D no
write list =3D ciadm=20
valid users =3D @uv
comment =3D Aplicacions lliures per a la UVEG
fake oplocks =3D yes
[profiles]
comment =3D perfils dels usuaris
available =3D yes
browseable =3D yes
;path =3D /home/%G/%U
;path =3D /u/%U
;path =3D /home/samba/maquines/%m
path =3D %H
public =3D no
guest only =3D no
writable =3D yes
only user =3D no
==== servifama.conf ====================================
; Passwords are encrypted by default. This way the latest Windows 95
and NT
; clients can connect to the Samba server with no problems.
encrypt passwords =3D no
; Please read BROWSING.txt and set the next four parameters according
; to your network setup. There is no valid default so they are
commented
; out.
domain master =3D yes
local master =3D yes
preferred master =3D yes
os level =3D 128
; Parametres per al control del domini
;workgroup =3D fmatem
domain logons =3D yes
logon script =3D netlogon.bat
domain admin group =3D @adm
logon path =3D \\%L\profiles\%U
logon home =3D \\%L\%U\.profiles
=== abacus.conf
==========================================================
; Passwords are encrypted by default. This way the latest Windows 95
and NT
; clients can connect to the Samba server with no problems.
encrypt passwords =yes
; Control de domini
; workgroup =3D CIUV
domain master =3D no
local master =3D no
preferred master =3D no
domain logons =3D no
os level =3D 64
---------------------------------------------------
Joan Carles Soler
Operador SIUCB
Joan.Soler at uv.es
More information about the samba-technical
mailing list