PDA

View Full Version : [Added] Bandwidth Control


thewarden
10-08-2003, 04:24 AM
Darkone:

I know you have been asked time and time again...

But can you shed some light on the when IO will have the
BW controls put into play with per user and global?

I know by the posts here some are waiting on this feature
before they run IO - myself included as I had to go back to
ra****n until IO gets this built in.

So, I am asking here once again to just be a pain :)

TW


PS: feel free to blast away at me if you want...I know what it
is like to have the same question asked 101 times...

MaistroX
10-08-2003, 04:34 AM
Would have posted something like this myself, but I did´nt dare ! ;)

thewarden
10-08-2003, 10:37 AM
Originally posted by MaistroX
Would have posted something like this myself, but I did´nt dare ! ;)

You will see that my next one is even bolder - and will go
somewhat like this....



I asked for a feature the same day here and over at r****n
and if you scan my messages there, I also nudged r****n into
the spanned dir's they use - I got banned there 3 times on a
few issues, so following my alais might be hard...thewarden,
ye old fart, glb ... I am a friggin pest :)

It's already in r*****n and works 101% perfect and the turn
around was 24 hours !!!!

Anyways, the feature is the main thing and overall, I have to
say that I am amazed at the increased cached of dir's - I have
cached my overall 3.2 terrabytes on site 1 of my systems and
they are now "INSTANT" to the users...no more waiting like
before. Doing site 2 today.

A dir with 1000+ = 2 seconds or less once cached and this is
user after user and it auto updates as mods are made.

you know - a busy site then wait 1,2,3,4,30,40 secs for a dir...

not now - 1,2, there it is and this was even with a combined
cached temp vfs dir of 34,489 rip dirs....almost INSTANT!

Owner and dir Size = ON! Across the network, so if you ever
ran this type of setup, then you will know this is a huge overall
performance boost to the end user - with the cost - a little ram!

MIND YOU - instant is based on many things, don't read this
wrong...but compared to the old way - the new way is a blessing
to the users and the system.

When I get emails from some of these people stating HOLY SHIT,
I know them...they don't do this for nothing.


I'll wait another day to nudge Darkone directly on this :)

Hmm, maybe I already did ?

TW

darkone
10-08-2003, 11:35 PM
ioFTPD already caches directory size & permissions (has done this since beta4) Managment of cache is LALR - last accessed, last released :p Cache is global, and updated once directory modification has been noticed. Contents of directory however are not cached (caching them is rather stupid, as OS already caches them)

I did some testing just for you:

200 PORT command successful.
150 Opening BINARY mode data connection for directory listing.
721
ftp: 3014025 bytes received in 0,08Seconds 37675,31Kbytes/sec.
ftp> dir "*/*/*/*" d:\whew

debian:/work# cat whew | wc -l
36560

721milliseconds, ~0.7secs to build list of 3mbytes (nearly 37k entries) This includes time includes buffer formatting, reading + checking directory/file permissions [possible private paths] & grabbing directory sizes from cache, mounts (this count does not include subdirectories/files that were not shown)

I really can't see room for improvements there :)

darkone
10-08-2003, 11:38 PM
BW Control is on my urgent todo list.. as usual, there is no time frame... when done

thewarden
10-08-2003, 11:38 PM
Originally posted by darkone
ioFTPD already caches directory size & permissions

Ok, I stand corrected on this...will have to do some testing here
myself as well...

But what about the bw question :)

Would like to get back to IO...

darkone
10-08-2003, 11:40 PM
btw, that cache is most likely much better than what raiden offers.. it comes 'for free' for those directories that contain .ioFTPD file (directory size is calculated, when .ioFTPD file contents are being validated)

darkone
10-08-2003, 11:47 PM
btw.. I even posted sources for current list on irc channel. I did optimize it few days ago :)

http://www.ioftpd.com/~darkone/tmp/NewList.c

Pharaoh
10-09-2003, 12:11 AM
In the mean time, you may use netlimiter for OVERALL bandwidth control, if you need.

http://www.netlimiter.com

thewarden
10-09-2003, 03:55 AM
Darkone - thanks for the update on this...best I keep a
better eye on IO

Pharaoh - thanks, but I have something better that is a self
contained server for that...my issue is global, but as well
as single users to the site...