Re: [Samba] CPU consumption by samba

2003-06-23 Thread Wolfram Quester
Hi,

I'm no expert at all and I never experienced something like that, so
probably I'm the wrong to ask. Perhaps someone more experienced on the
list could help?

On Sat, Jun 21, 2003 at 11:29:22PM +0200, Massimiliano Hofer wrote:
 Alle 9:03 AM, mercoledì 18 giugno 2003, Wolfram Quester ha scritto:
 
  I remember that there were issues with VisualFox Pro and oplocks
  discussed on this list. Try to disable them
  A recommendation was to look at
  http://www.drouillard.ca/TipsTricks/Samba/Oplocks.htm
  You can search this list at marc.theaimsgroup.com for Foxpro Test with
  http://marc.theaimsgroup.com/?l=sambaw=2r=1s=Foxpro+Testq=b
  for further information.
 
 Thank your for the interesting links, but they seem to discuss corruption 
 problems (which I don't have).
Sorry for leading you on the wrong path. The term VisualFox Pro just
rang a bell. 

 Anyway I managed to perform some more tests with various settings of locks, op 
 locks, caching, etc. The only significant parameter (if I'm not missing 
 anything fundamental) I didn't test extensively is the lock spin, which I'll 
 test in the next few days.
 I even tried samba 3, but to no avail (it was slower).
 Sometimes it got a little faster or slower, but the loading time never went 
 below 30 seconds and this is way too slow compared with 2 seconds on a 
 Windows 2000 server. Meanwhile all other application run faster with samba 
 than with Windows (as expected :)).
 
 During those 30 seconds the CPU load takes 80% user time and 20% system time 
 and this is with just one client. What could possibly take this much 
 resources?
I first thought on some protocol negotiation, but this should show up on
logon time, not during a working connection.

In your log there are quite a lot of lines like
 [2003/06/13 19:43:13, 3] smbd/trans2.c:call_trans2qfilepathinfo(1719) 
 call_trans2qfilepathinfo: vfs_stat of vfcssrc failed (No such file or directory)
 [2003/06/13 19:43:13, 3] smbd/error.c:error_packet(94) error string = No such file 
 or directory
 [2003/06/13 19:43:13, 3] smbd/error.c:error_packet(113) error packet at 
 smbd/trans2.c(1721) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_NAME_NOT_FOUND
 [2003/06/13 19:43:13, 3] smbd/process.c:process_smb(878) Transaction 10280 of length 
 88
They make me think there might be issues with some name-mangling or
codepage-settings. Are there accents, umlauts or the like in your
filenames? The interesting part would be why these things don't occur
with other applications then.

Best regards,

Wolfi
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] CPU consumption by samba

2003-06-21 Thread Massimiliano Hofer
Alle 9:03 AM, mercoledì 18 giugno 2003, Wolfram Quester ha scritto:

 I remember that there were issues with VisualFox Pro and oplocks
 discussed on this list. Try to disable them
 A recommendation was to look at
 http://www.drouillard.ca/TipsTricks/Samba/Oplocks.htm
 You can search this list at marc.theaimsgroup.com for Foxpro Test with
 http://marc.theaimsgroup.com/?l=sambaw=2r=1s=Foxpro+Testq=b
 for further information.

Thank your for the interesting links, but they seem to discuss corruption 
problems (which I don't have).
Anyway I managed to perform some more tests with various settings of locks, op 
locks, caching, etc. The only significant parameter (if I'm not missing 
anything fundamental) I didn't test extensively is the lock spin, which I'll 
test in the next few days.
I even tried samba 3, but to no avail (it was slower).
Sometimes it got a little faster or slower, but the loading time never went 
below 30 seconds and this is way too slow compared with 2 seconds on a 
Windows 2000 server. Meanwhile all other application run faster with samba 
than with Windows (as expected :)).

During those 30 seconds the CPU load takes 80% user time and 20% system time 
and this is with just one client. What could possibly take this much 
resources?

-- 
Saluti,
   Massimiliano Hofer
Nucleus

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] CPU consumption by samba

2003-06-18 Thread Wolfram Quester
Hi,

On Tue, Jun 17, 2003 at 01:18:53AM +0200, Massimiliano Hofer wrote:
 Hi,
 I'm having strange performance problems with samba and an application written 
 with VisualFox Pro.
 This application is entirely installed in a Windows share and it has a hystory 
 of strange phenomenons.
...snip...

I remember that there were issues with VisualFox Pro and oplocks
discussed on this list. Try to disable them
A recommendation was to look at 
http://www.drouillard.ca/TipsTricks/Samba/Oplocks.htm
You can search this list at marc.theaimsgroup.com for Foxpro Test with
http://marc.theaimsgroup.com/?l=sambaw=2r=1s=Foxpro+Testq=b
for further information.

HTH,

Wolfi
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] CPU consumption by samba

2003-06-16 Thread Massimiliano Hofer
Hi,
I'm having strange performance problems with samba and an application written 
with VisualFox Pro.
This application is entirely installed in a Windows share and it has a hystory 
of strange phenomenons.

Initially it ran fast on an old NT server (but that server has been replaced).

It has strange performance problems with Windows 2000 Server: it runs fast 
with some servers and slow with other seemengly identical ones. The slow 
Windows servers show no noticeable load (low CPU usage, low disk usage, low 
network bandwidth, but very high number of packets).

I tried to share this same application with Samba hoping to gain some 
performance, but it runs even slower (twice the loading time the the slowest 
Windows available) and it hogs all the CPU. This last detail particularly 
surprised me.

I attach the samba logs for just 0.5 seconds of high load (log level 5). I 
tried all I could to optimize samba for this kind of load, but nothing yelded 
better results than just the default and I don't know what else to try.
Has anyone had similar problems with applications that try to access massive 
amounts of files (and with massive amounts of errors)?

-- 
Bye,
   Massimiliano Hofer
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] CPU consumption by samba

2003-06-16 Thread Massimiliano Hofer
Alle 1:18 AM, martedì 17 giugno 2003, Massimiliano Hofer ha scritto:

 I attach the samba logs for just 0.5 seconds of high load (log level 5). I

Ops, my attachment has been removed. Here is the log excerpt:



[2003/06/13 19:43:13, 4] smbd/trans2.c:call_trans2findfirst(979)
  dptr_num is 256, wcard = eppc0103.PRG, attr = 22
[2003/06/13 19:43:13, 4] smbd/dir.c:dptr_close_internal(225)
  closing dptr key 256
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(113)
  error packet at smbd/trans2.c(1042) cmd=50 (SMBtrans2) 
NT_STATUS_NO_SUCH_FILE
[2003/06/13 19:43:13, 3] smbd/process.c:process_smb(878)
  Transaction 10263 of length 98
[2003/06/13 19:43:13, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans2 (pid 10745)
[2003/06/13 19:43:13, 4] smbd/uid.c:change_to_user(119)
  change_to_user: Skipping user change - already user
[2003/06/13 19:43:13, 3] smbd/trans2.c:call_trans2findfirst(896)
  call_trans2findfirst: dirtype = 22, maxentries = 1366, close_after_first=1, 
close_if_end = 1 requires_resume_key = 1 level = 260, max_data_bytes = 16384
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/eppc0103.PRG]
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [eppc0103.PRG]
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [./]
[2003/06/13 19:43:13, 3] smbd/dir.c:dptr_create(488)
  creating new dirptr 256 for path ./, expect_close = 1
[2003/06/13 19:43:13, 4] smbd/trans2.c:call_trans2findfirst(979)
  dptr_num is 256, wcard = eppc0103.PRG, attr = 22
[2003/06/13 19:43:13, 4] smbd/dir.c:dptr_close_internal(225)
  closing dptr key 256
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(113)
  error packet at smbd/trans2.c(1042) cmd=50 (SMBtrans2) 
NT_STATUS_NO_SUCH_FILE
[2003/06/13 19:43:13, 3] smbd/process.c:process_smb(878)
  Transaction 10264 of length 106
[2003/06/13 19:43:13, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 10745)
[2003/06/13 19:43:13, 4] smbd/uid.c:change_to_user(119)
  change_to_user: Skipping user change - already user
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/dati/eppc0103.FXP]
[2003/06/13 19:43:13, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(dati/eppc0103.FXP) returning 0764
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [dati/eppc0103.FXP]
[2003/06/13 19:43:13, 4] smbd/open.c:open_file_shared1(942)
  calling open_file with flags=0x0 flags2=0x0 mode=0764
[2003/06/13 19:43:13, 3] smbd/open.c:open_file(176)
  Error opening file dati/eppc0103.FXP (No such file or directory) 
(local_flags=0) (flags=0)
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(113)
  error packet at smbd/nttrans.c(889) cmd=162 (SMBntcreateX) 
NT_STATUS_OBJECT_NAME_NOT_FOUND
[2003/06/13 19:43:13, 3] smbd/process.c:process_smb(878)
  Transaction 10265 of length 113
[2003/06/13 19:43:13, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 10745)
[2003/06/13 19:43:13, 4] smbd/uid.c:change_to_user(119)
  change_to_user: Skipping user change - already user
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/dati/custom/eppc0103.FXP]
[2003/06/13 19:43:13, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(dati/custom/eppc0103.FXP) returning 0764
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [dati/custom/eppc0103.FXP]
[2003/06/13 19:43:13, 4] smbd/open.c:open_file_shared1(942)
  calling open_file with flags=0x0 flags2=0x0 mode=0764
[2003/06/13 19:43:13, 3] smbd/open.c:open_file(176)
  Error opening file dati/custom/eppc0103.FXP (No such file or directory) 
(local_flags=0) (flags=0)
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(113)
  error packet at smbd/nttrans.c(889) cmd=162 (SMBntcreateX) 
NT_STATUS_OBJECT_PATH_NOT_FOUND
[2003/06/13 19:43:13, 3] smbd/process.c:process_smb(878)
  Transaction 10266 of length 109
[2003/06/13 19:43:13, 3] smbd/process.c:switch_message(685)
  switch message SMBntcreateX (pid 10745)
[2003/06/13 19:43:13, 4] smbd/uid.c:change_to_user(119)
  change_to_user: Skipping user change - already user
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [/vfcssrc/eppc0103.FXP]
[2003/06/13 19:43:13, 3] smbd/dosmode.c:unix_mode(111)
  unix_mode(vfcssrc/eppc0103.FXP) returning 0764
[2003/06/13 19:43:13, 3] lib/util.c:unix_clean_name(387)
  unix_clean_name [vfcssrc/eppc0103.FXP]
[2003/06/13 19:43:13, 4] smbd/open.c:open_file_shared1(942)
  calling open_file with flags=0x0 flags2=0x0 mode=0764
[2003/06/13 19:43:13, 3] smbd/open.c:open_file(176)
  Error opening file vfcssrc/eppc0103.FXP (No such file or directory) 
(local_flags=0) (flags=0)
[2003/06/13 19:43:13, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/06/13