Frequently Asked Questions


Yeah oh, the good old FAQ !!! Post me your questions and i will answer them here...
Ok, not all, but if they are relate to sdclone/sdserver and are good ones, i will.

  1. I load the script, but it keep saying i have 0 files share...
  2. How can i make the script find files from many directories ?
  3. What are dynamics slots ?
  4. What's new in SDClone ?
  5. When i try to build the list, i have "Can't setuid" error message



Q: I load the script, but it keep saying i have 0 files share...
A: Most common problems for that is



Q: How can i make the script find files from many directories ?
A: Here's how too...
You can do that by creating symbolics links to directories where files are. And setting the script to $followLink

Here's a real example:
We will setup the script to find files in ~/mp3share, ~/mp3share/anymp3, ~/mp3stock, /mnt/cdrom and from /usr/local/mp3other
In every directory we have a file call test.mp3 (this will help show you how the list is made) Now the script build your list by taking the $mainDir value (~/mp3share) and will follow the links on every directories.
Look the results, script has find that files...
~/mp3share/test.mp3
~/mp3share/anymp3/test.mp3 eheh i'm sure you have forgot that one :), but the script will not...
~/mp3share/mp3/test.mp3
~/mp3share/mp3cdrom/test.mp3
~/mp3share/other/test.mp3




Q: What are dynamics slots ?
Q: How dynamics slots works ?
Q: Advantage of dynamics slots ?

A: Dynamics slots is the opposite of statics slots, so let's have a look at statics slots first... In SpRJukebox and SDFind, slots are statics (except in SDFind if you use BHSlots), you choose how many slots you want open and the script always keep that number of slots open. That's static.
Example: Slots are set to 4, the script will always keep open 4 slots.

In SDClone (and BHSlots) slots are dynamics, you choose a minimum and a maximum number of slots, and the script will open slots when it's need, so you could have any number of slots within minimum and maximum number you choose...
Example: Minimum slots is set to 2, Maximum slots is set to 4. The script will always have 2 slots open, and sometimes 3 or 4.

And where the scripts choose to open slots ?
If your upload speed is too low compare to your target speed, SDClone will open a new slot so a new user can get a file, and so, it should increase your upload speed...
The Target Speed is calc base on how you setup Dynamics Slots, in case 0 or 1, calc is base on your Daily Record Speed.
Look at Dynamics Slots settings to find the target speed...
$DynamicSlots $DynamicValue Record Speed Target Speed Current Settings
0 4500 13000cps 6500cps Target Speed = $DynamicValue / 2
1 4500 13000cps 8500cps Target Speed = Record Speed - $DynamicValue
2 4500 13000cps 4500cps Target Speed = $DynamicValue

Ohoh, and now a table with examples, should be clearer...
Ok we are running a server that could upload @ 16000cps, dynamics slots are setup to $DynamicSlots=1; and $DynamicValue=4500; minimum/maximum slots are set to 2 and 4. Because of that settings, our Target Speed is 11500cps
Users @ speed
downloading
Slots Open Slots in Use Upload Speed Comment
1 @ 16000cps 2 1 16000cps Script open a new slot because you have set minimum slots to 2
1 @ 7000cps
1 @ 5000cps
2 2 12000cps Script will not open a new slot because your current upload speed (12000cps) is higher our target speed (11500cps).
1 @ 7000cps
1 @ 4250cps
3 2 11250cps Script will open a new slot because upload speed is lower 11500cps (16000cps-4500cps), so script will try send a 3rd files.
1 @ 1000cps
1 @ 500cps
1 @ 750cps
1 @ 1500cps
4 4 3750cps Script should open a new slot, but will not do it, to stay to maximum slot value
1 @ 1000cps
1 @ 15000cps
2 2 16000cps Script don't need to open slot as your bandwith is now fully taken

Now you have look at the table, if you have understand how it works... You should be able to see that the best settings for that server are :
- min slots=1, maxslots=4 or 5, $DynamicSlots=1, $DynamicValue=4500
- min slots=1, maxslots=4 or 5, $DyanmicSlots=2, $DynamicValue=12000
It's a bad idea to force $DynamicValue to your maximum upload speed (16000cps), in general the script will open too much slots, because users never keep a stable speed... With 12000cps you keep the script tolerant to variations.





Q: What's new in SDClone ?
A: Check the version history file, here




Q: When i try to build the list, i have "Can't setuid" error message

A: It's a perl issue...
- It could be a misconfiguring perl, check you have these files (some release forget to install it) in the same directory where your perl is install (try /usr/bin)
- perl
- perl5.6.1
- sperl5.6.1

If the sperl5.6.1 file is missing you will get that error because of that.

- Or simply set mode 775 the SDUtil.pl file, generally this solve the problem.
chmod 775 ~/.xchat/sdclone/SDUtil.pl


Join Linux, share your knowledge...
Host by ETECHNOVA !
Hosted by www.Geocities.ws

1