Log in

Bekijk de volledige versie : FTP listing slow



SpAwN
14-07-2005, 20:51
First my setup
WL-500g
FW: Oleg 1.9.2.7-6b

External HDD Case:
Sum Vision (Aluminium Mobile Enclosure)USB chip Genesys GL811
HDD Maxtor 160GB 7200rpm (FAT32 formated)

More info can be found in this thread (http://wl500g.info/showthread.php?t=2840)

FTP is working fine now download and upload speeds are ok.

But when i or some other user enter a folder with a lot files in it FTP listing take ages. I have tried different FTP clients with same results.

Does anyone else have same problem, is it my setup or is this normal?
Could it be the WL-500g being USB 1.1 ?
Does it improve if i get WL-500gx since it is USB 2.0?

I have searched in the forums and only thread i could find is this:
http://wl500g.info/showthread.php?t=603
There was no soloution for that thread and since it was old i opened this one.

Thanks in advance

WlanMan
14-07-2005, 21:07
Hi

This may be a problem of the inbuild ftp serverīs direktory parser, or of the usb link. Depending on your directory size, the listing of a dir from telnet can also be noticeable slowed down, but this shouldnīt to extreme. Try what "ls"ing of the same dir from telnet takes time.

You can try vsftp from the ipkg packages as an alternative ftp daemon. This one has a definitive aproved good performance. If it lists slow even with these one, it must be a hardware limitation.

Greets

SpAwN
15-07-2005, 07:56
Thanks for the answer man, i will try that one later out if users get more wanky, i am total n00b on this lol :)

Or is oleg planning to build in svftp on 1.9.4.0 :D

The better questions would be; is it possible to make a script to do a scheduled restart for wl500g since i need to restart the router after 36 hours everytime otherway the FTP get pretty slow, since my ISP restart my connection everyday at 4:06 pm it would be great to restart wl500g at same time.

macsat
15-07-2005, 08:01
If you create a cron setup, you can very easily reboot your router every night at 4.00 or something of your liking.

For tutorial on both cron and vsftp, you could check out my site at www.macsat.com

SpAwN
15-07-2005, 08:09
Thanks mascat i will try to do my best on this, but like i said i am total n00b on this, i have to figur out how everything works.

Reading your tutorial now :) but i am afraid my knowledge will let me down :(

macsat
15-07-2005, 08:25
The tutorials should VERY easy to follow.

My impression is, that a lot of n00b's have been using them with success...

As for the auto-reboot thing....once you get cron running, make a small file called : reboot.sh that contains :



#!/bin/sh
reboot


And place it in /opt/etc/cron.daily/

Then your router will automaticly reboot at 04.00 AM every day...

SpAwN
15-07-2005, 08:35
ok, but how do i make sure it will reboot at 4:00 since i didnt set it anywhere.

The biggest problem is ipkg, i was reading the tutorials and it tells to partition on the HDD, and the HDD i use is already 50% full (80GB) i will loose everything :(

So i need to think how to manage that, maybe i will transfer the files to my PC and than i go for ipkg.

Thanks for all help mascat, really appreciated :)

macsat
15-07-2005, 08:43
If you already have a harddisk setup, just ignore the partition stuff....it can run the partition you have now I bet....depending on the filesystem you have chosen on your harddrive...

SpAwN
15-07-2005, 08:50
It is FAT32 formated and only one partition has 2 folders in it:
ftp_pub and ftp_pvt

It was 21GB :eek: i dont know how i came up with 80GB sorry :(

21GB is in the ftp_pub right now,



[SpAwN@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part5156242112 22154432 134087680 14% /tmp/harddisk


So this is good to go and follow the tutorial after the partition part?

macsat
15-07-2005, 08:59
I really dont know if it is possible to run all the stuff from a FAT32 partition....Oleg?

Someone in here knows, I am pretty sure.

One alternative way, is to create a large file, say 2 gigs, on the drive and then format that as ext3 and mount it at startup....in that way, you can also make another smaller file and create swap on that.

But...lets hear what peeps in here has to say.....is it possibl to run optware from a FAT32 ?

WlanMan
15-07-2005, 12:08
But...lets hear what peeps in here has to say.....is it possibl to run optware from a FAT32 ?
You better do not, it may work but if a programm demands some special filesystem flags which fat32 cant offer, it gets tricky.
The way with the /opt filesystem in a single file on top of fat32 is the better way, itīs maybe a little bit slower in acces time, but this should not bother us.

For information, you will create an empty file on your existing partition, and inside this file you will create a filesystem which can then be mounted everywhere as if itīs a real harddisk partition. so you do not have to repartition or format your drive with that 21GB of pr0n ;).

Greets

SpAwN
18-07-2005, 08:38
Thanks guys,

I will go for vsFTP with whole new file system when i have the time.
I can make backup and set it back afterwards, the standard FTP has not enough functions for the purpose i use.