Page Top

Outline anchor.png

  • Attention The texture data is downloaded by HTTP(S) since SL Viewer 2.1.1. Therefore, when Viewer since SL Viewer 2.1.1 is used, sl_cache seems to be useless.
  • sl_cache is a UDP Texture Cache Server for sl_relay running on Linux.
  • By our measurements, the texture data accounts for about max 80% of all UDP data, though it depends on the SIM's status.
  • Cache data is saved in a plain file or Berkeley DB file. (It works fast enough even with a plain file)
  • sl_cache doesn't rewrite the sequence number of UDP packets. It only saves data taking it out of the data stream.
  • sl_cache is part of sl_proxy.
  • Current version is 1.1.0 (28 Step. '11)
Page Top

Outline of Functions anchor.png

  1. Texture data caching is enabled through sl_relay.
Page Top

Annoyances or Bugs. anchor.png

  1. Cache data is saved in a plain file or a Berkeley DB file. SQL database is not supported.
  2. The speed slows in Berkeley DB. Plain file is more high-speed now.
  3. The program has not been stress tested.
Page Top

Configuration anchor.png

  • The default configuration file is /usr/local/etc/sl_proxy/sl_cache.conf.
  • It is also possible to specify other files if -f option of sl_cache is specified.
  • Because the configuration file is read before sl_cache does the switch to the effective user, exec user should be able to be read.
  • The setting of each item is described in the configuration file. Empty lines or lines starting with # are not read.
Page Top

Items anchor.png

Page Top
Ports for communication with Relay Server anchor.png
Page Top
Number of transfer packets anchor.png
Page Top
Access Control anchor.png
Page Top
Etc. etc. anchor.png
Page Top

Execute Options anchor.png

sl_cache  [-p port_no] [-f config_file] [-u user_name] [-i interface_address]
          [-pid pid_file] [-l [hitrate_logfile]] [-v syslog_level]
          [-xpr [expire_days]] [-lx [expire_logfile]]
          [-fdb] [-d]
          [--version] [--help] [-h]
-p   : port number that Relay Server(sl_relay) connects. default is 8200.
-f   : configuration file. default is /usr/local/etc/sl_proxy/sl_cahe.conf
-u   : specify effective user.
-i   : specify sl_relay side network interface IP address.
       if your server has two or more network interfaces, you need to use this option.
-pid : specify pid file.
-l   : create hit rate log file. default file name is /var/sl_proxy/sl_cache_hitrate.log
-v   : level of syslog. default is LOG_INFO (7).
-xpr : execute the cache expire daemon. 
       The expire time can be continuously specified by day unit. default is the 30days.
       the expire demon retrieves at random and deletes data without the access during 
       the specified days.
-lx  : create cache expire log file. default file name is /var/sl_proxy/sl_expire_cache.log
-fdb : Berkeley DB is used for the data base. default is plane file.
-d   : debug mode. display debug information.
--version  : display Version information.
--help, -h : display this Help messages.
Page Top

Processes anchor.png

Page Top

Data Caching anchor.png

  • There is a two step data save process so that a single process can control the actually data save, thus avoiding file locking problems.


  • [Save Data Process] is Cache Put Server
  • [Get Cache Process] is Cache Control Process

Front page   Freeze Diff Backup Copy Rename Reload   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)
Counter: 4334, today: 2, yesterday: 0
Last-modified: 2011-09-28 (Wed) 11:29:54 (JST) (3163d) by admin

Site Search




Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2020Next Month
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Who's Online

19 user(s) are online (3 user(s) are browsing xpwiki)

Members: 0
Guests: 19


Access Counter

Today : 2190219021902190
Yesterday : 3105310531053105
Total : 1463634414636344146363441463634414636344146363441463634414636344
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com