Reading files from samba-server is very slow

Reading files from samba-server is very slow

Post by Manfred Schule » Mon, 04 Dec 2000 04:00:00



When I'm reading files from my samba server (pentium 120, 64MB, 3c509) I
get very low data rates (iptraf reports 60 kbit/s), writing files is ok.

Here is a tcpdump from reading.

16:49:30.785105 asterix.dorf.gallien.1029 >
majestix.dorf.gallien.netbios-ssn: . 3235:3235(0) ack 886575 win 2144
<nop,nop,timestamp 192350 32564924> [tos 0xa4]
16:49:30.785281 majestix.dorf.gallien.netbios-ssn >
asterix.dorf.gallien.1029: . 886575:888023(1448) ack 3235 win 31856
<nop,nop,timestamp 32564946 192350>

Quote:>>> NBT Packet

NBT - Unknown packet type
Type=0x101080A
Data: (120 bytes)
[000] 01 F0 E6 D2 00 02 EF 5E  D9 AC B7 DA A0 BE D0 A5  .......^
........
[010] AE CF B0 AF DC B7 BC D8  C1 C9 D8 BC D4 E2 C7 D7  ........
........
[020] E7 BC BE DD B3 C2 D7 B5  C2 D8 AD C1 D8 BE BD E5  ........
........
[030] C0 D2 DA B4 C2 D5 AC B8  D9 AE B7 CE 98 B1 C8 A2  ........
........
[040] B5 CB 9A B3 CD 9A AA D1  9D B1 CC A9 AE CD A7 BA  ........
........
[050] D9 AF BE D1 BC D8 DC BD  D7 DC CC CB E3 D3 DC E8  ........
........
[060] CE D2 DE B7 00 00 00 00  00 00 00 00 00 00 00 00  ........
........
[070] 00 00 00 00 00 00 00 00                           ........

 (DF)
16:49:31.004785 asterix.dorf.gallien.1029 >
majestix.dorf.gallien.netbios-ssn: . 3235:3235(0) ack 888023 win 2144
<nop,nop,timestamp 192352 32564946> [tos 0xa4]
16:49:31.004960 majestix.dorf.gallien.netbios-ssn >
asterix.dorf.gallien.1029: . 888023:889471(1448) ack 3235 win 31856
<nop,nop,timestamp 32564968 192352>

Quote:>>> NBT Packet

NBT - Unknown packet type
Type=0x101080A
Data: (120 bytes)
[000] 01 F0 E6 E8 00 02 EF 60  D2 DE C0 CB E0 B7 BC DE  .......`
........
[010] C6 C1 DD C4 C0 E4 B4 B9  DD C4 C4 E4 CB C4 E5 CA  ........
........
[020] D1 E7 C6 CF E4 C5 CF D9  C2 C9 DD C3 C6 E2 C5 C6  ........
........
[030] E2 B6 CF E1 B7 C2 DE C1  DE E9 CF D0 E8 CB D4 EA  ........
........
[040] CF D6 E2 E1 D9 E9 D0 C6  E3 CF C5 EC C8 C4 EA D4  ........
........
[050] CF EB D7 DA E9 C7 D0 EA  D7 D4 E9 D6 DD E8 D5 D7  ........
........
[060] F1 D8 D9 EA 00 00 00 00  00 00 00 00 00 00 00 00  ........
........
[070] 00 00 00 00 00 00 00 00                           ........

 (DF)

Manfred Schuler

 
 
 

1. Reading a directory and knowing which type of file am I reading

        I'm developing a program that reads a directory (using dirent.h
functions) and if a file is a directory it displays a messagebefore the name
of the directory.

        Whoever it doesn't seems to work properly, i don't know what I 'm
doing wrong. The program lists the content of the directory but it doesn't
seem to work properly.

        This is a snippet of my program:
#include <errno.h>
#include <dirent.h>
#include <stdio.h>

int main(void){
        DIR *dir;
        struct dirent *ent;
        if (!(dir=opendir("."))) {
                perror("opendir");
                return 1;
        }

        errno=0;
        while ((ent = readdir(dir))) {
                if (ent->d_type == DT_DIR)
                        printf("DIRECTORY\t%s\n",ent->d_name);
                else
                        printf("%s\t\t%d\n",ent->d_name,ent->d_type);
                errno =0;
        }
        if (errno) {
                perror("readdir");
                return 1;
        }
        closedir(dir);
        return 0;

                Any idea is welcome

                                    Andres Tarallo

pD: I'm working under SuSE 6.3 english version

2. permission denied after recompile

3. VERY slow samba-server connection

4. HELLLP..... Starting CDE

5. SMB slow, Samba slow, or something else slow?

6. 2.2.2 module unresolved symbols

7. SCO 5.0.2 NSF is slow - VERY slow What am I doing wrong??

8. I/O error with sendmail

9. Accuracy of Netmechanic Server Check--Am I slow?

10. Samba slow when reading from Mac

11. Samba SLOW reading

12. I've read/am reading the faq's - but what is a Segmentation fault?

13. Samba printing slow.. very slow..