From 5a4fda9dc3aca873bcf034877eed1f9c5914493f Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Fri, 16 Oct 2009 11:09:18 -0700 Subject: Updating OpenSim.ini.example with the section required to enable a useful prioritization scheme --- bin/OpenSim.ini.example | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 002745d..ba797e6 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -1385,6 +1385,14 @@ ; ;TextureDataLimit = 5 +[InterestManagement] + ; This section controls how state updates are prioritized for each client + UpdatePrioritizationScheme = Distance + ReprioritizeUpdate = true + RootUpdateReprioritizationDistance = 10.0 + ChildUpdateReprioritizationDistance = 20.0 + ReprioritizeUpdatesInterval = 5000.0 + ;; ;; These are defaults that are overwritten below in [Architecture]. ;; These defaults allow OpenSim to work out of the box with -- cgit v1.1 From fdce1be3db287bed901332b90ba57165e201d3fc Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Mon, 19 Oct 2009 16:52:27 -0700 Subject: * Removed OpenSim.Data.NHibernate * Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing --- bin/OpenSim.ini.example | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index ba797e6..2d56f4e 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -258,12 +258,9 @@ ; Inventory database provider inventory_plugin = "OpenSim.Data.SQLite.dll" ; inventory_plugin = "OpenSim.Data.MySQL.dll" - ; inventory_plugin = "OpenSim.Data.NHibernate.dll" ; for nhibernate ; Inventory source SQLite example inventory_source = "URI=file:inventoryStore.db,version=3" - ; Inventory Source NHibernate example (DIALECT;DRIVER;CONNECTSTRING) - ; inventory_source = "SQLiteDialect;SqliteClientDriver;URI=file:Inventory.db,version=3" ; Inventory Source MySQL example ;inventory_source = "Data Source=localhost;Database=opensim;User ID=opensim;Password=****;" @@ -277,12 +274,9 @@ ; userDatabase_plugin = "OpenSim.Data.SQLite.dll" ; userDatabase_plugin = "OpenSim.Data.MySQL.dll" - ; userDatabase_plugin = "OpenSim.Data.NHibernate.dll" ; for nhibernate ; User source SQLite example user_source = "URI=file:userprofiles.db,version=3" - ; User Source NHibernate Example (DIALECT;DRIVER;CONNECTSTRING) - ; user_source = "SQLiteDialect;SqliteClientDriver;URI=file:User.db,version=3" ; User Source MySQL example ;user_source = "Data Source=localhost;Database=opensim;User ID=opensim;Password=****;" -- cgit v1.1 From 8a336c6860d66b9fbba6922c32e7a57fd355c57e Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 22 Oct 2009 02:28:53 +0100 Subject: Add MaxPoolThreads in startup to limit the size of the thread pool used for FireAndForget. This lets us limit concurrency to make OpenSim play nice --- bin/OpenSim.ini.example | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 2d56f4e..92e6d91 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -42,6 +42,9 @@ ; Set this to the DLL containing the client stack to use. clientstack_plugin="OpenSim.Region.ClientStack.LindenUDP.dll" + ; Max threads to allocate on the FireAndForget pool + MaxPoolThreads = 30 + ; ## ; ## REGIONS ; ## -- cgit v1.1 From 8ce4fd7234bd460652f6159a3b7a21d2bebee05d Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 22 Oct 2009 04:02:26 +0100 Subject: Reduce the default pool threads to 15 (from 30) and the minimum from 5 to 2 --- bin/OpenSim.ini.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 92e6d91..25d3f39 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -43,7 +43,7 @@ clientstack_plugin="OpenSim.Region.ClientStack.LindenUDP.dll" ; Max threads to allocate on the FireAndForget pool - MaxPoolThreads = 30 + MaxPoolThreads = 15 ; ## ; ## REGIONS -- cgit v1.1 From 32ccd5bb40447ea4d96f1181cf73edff3645a55a Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Wed, 21 Oct 2009 23:03:18 -0700 Subject: * Changed the misc. methods calling ThreadPool.UnsafeQueueUserWorkItem() to Util.FireAndForget() * Changed Util.FireAndForget() to use any of five different methods set with async_call_method in the [Startup] section of OpenSim.ini. Look at the example config for possible values --- bin/OpenSim.ini.example | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/OpenSim.ini.example') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 2d56f4e..35b08f9 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -31,6 +31,15 @@ ; To run a script every few minutes, set the script filename here ; timer_Script = "filename" + + ; ## + ; ## SYSTEM + ; ## + + ; Sets the method that OpenSim will use to fire asynchronous + ; events. Valid values are UnsafeQueueUserWorkItem, + ; QueueUserWorkItem, BeginInvoke, SmartThreadPool, and Thread + async_call_method = UnsafeQueueUserWorkItem ; ## ; ## CLIENTS -- cgit v1.1