[linux-cifs-client] Re: High Traffic load

Gustavo Feijó feijo.listas at gmail.com
Mon Jan 29 16:29:04 GMT 2007


This is my tcpdump output
# tcpdump -i eth0 -vn host 192.168.0.31
14:16:32.240371 IP (tos 0x0, ttl  64, id 12467, offset 0, flags [DF],
proto: TCP (6), length: 174) 192.168.0.31.51451 >
192.168.0.1.microsoft-ds: P 23701:23823(122) ack 48938 win 2003
<nop,nop,timestamp 7337643 883178706>
14:16:32.240647 IP (tos 0x0, ttl  64, id 61561, offset 0, flags [DF],
proto: TCP (6), length: 217) 192.168.0.1.microsoft-ds >
192.168.0.31.51451: P 48938:49103(165) ack 23823 win 170
<nop,nop,timestamp 883178707 7337643>

# cat /proc/fs/cifs/Stats (at the client and the server machine the same output)
cat: /proc/fs/cifs/Stats: No such file or directory

And this is my mount command:
mount -t cifs -o rw,username=aaaa,password=bbbb //192.168.0.1/publico
/mnt/rpublico

The network load runs realy high. It jups from 50K to 360K.

I did reproduce this bug with 3 others machines.

running 2.6.18-1.2257.fc5
Kate 2.5.5 (using KDE 3.5.5-0.2.fc5 Fedora Core)


2007/1/26, Steve French <smfltc at us.ibm.com>:
> > Recentely I noted this high traffic load over the network.
> It would be helpful to isolate whether these are SMB/CIFS requests causing
> the load, or something below CIFS (e.g. TCP retransmissions).  If your
> cifs module (cifs.ko) was built by your distro with CIFS_STATS enabled on the
> client you can see counters for each of the common type of SMB/CIFS requests
> that the client can send by doing:
>         cat /proc/fs/cifs/Stats
> and reset them back to zero (for easier comparison) via
>         echo 0 > /proc/fs/cifs/Stats
>
> It would be helpful to know if reads or writes or opens or transact2
> (usually for lookup) were causing the load - from there it should be possible
> to work backward to what system call in your application is causing the
> excessive load (e.g. via strace).
>
> An alternative way of getting similar information is to simply run wireshark
> (ethereal) while the load is high and filter on traffic from this machine
> and see what protocol and type of request is so common.  In practice
> wireshark is fantastic at this kind of thing (every developer and support
> person should learn to know and love it ...) but looking at cifs stats
> is even easier in your case and very quick.
>
> _______________________________________________
> linux-cifs-client mailing list
> linux-cifs-client at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux-cifs-client
>


-- 
[]'s
chmod000
Linux User #291033
"Microsoft butterfly is their way of telling you their system has a
lot of @#$ bugs!"


More information about the linux-cifs-client mailing list