aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Asset (follow)
Commit message (Collapse)AuthorAgeFilesLines
* make SendCoarseLocations async, since it is http. Make some actions use ↵UbitUmarov2017-06-091-1/+1
| | | | thread from pool and not a new one. Threading does need a deep cleanup one of this days. This stops mantis 8183 warnings, but as side effect only
* mantis 8181: don't try to delete contents of a non exitent folderUbitUmarov2017-05-261-4/+13
|
* Squelch an error that happens when the asset cache was mounted RO.Melanie Thielker2017-03-311-0/+3
| | | | Nothing we can do about that, blame Docker.
* Refactor asset handling as per Ubit's suggestionMelanie Thielker2017-02-014-36/+34
|
* Make negative asset caching actually workMelanie Thielker2017-01-304-15/+36
| | | | | | Also fixes some merge artefacts in HGAssetBroker where cached assets were requested but not actually used and completely squelch a materials debug message because there is nothing the user can do to fix it anyway.
* Massive tab and trailing space cleanupMelanie Thielker2017-01-055-49/+49
|
* Add negative caching to flotsam cache. Prevents scripts from hammering the ↵Melanie Thielker2016-12-294-0/+42
| | | | asset server
* Refactor: Rename IImprovedAssetCache to IAssetCache as the old IAssetCache ↵Melanie Thielker2016-12-294-13/+13
| | | | is long gone.
* Add an option to update the file access time even when an asset is found in ↵Melanie Thielker2016-12-291-0/+15
| | | | | | | | cache. When the cache is shared between multiple sims, it is often more efficient to have a single expire job run from cron. Updating file access times is vital to the functioning of such setups.
* expire also from weak referencesUbitUmarov2016-12-291-0/+3
|
* gc is also a unwanted cache, so use it. With this, memcache with short ↵UbitUmarov2016-12-291-12/+71
| | | | expires is no longer needed
* FloatSamCache: dont use slideexpire on current libovm expirecache. Change ↵UbitUmarov2016-12-251-26/+49
| | | | example settings to use memory cache with short expire time. ( 20% to 40% mem cache hit rates observed
* fix null ref on m_CacheCleanTimer control, add a gc.collect on manual ↵UbitUmarov2016-11-301-2/+4
| | | | floatsam fcache assets comand
* slow down automatic floatsamAssetCache CleanupExpiredFiles LOT to reduce ↵UbitUmarov2016-11-301-13/+72
| | | | impact on simulation and to give GC more changes of preventing it from eating up all avaialble physcical memory on loaded machines.
* bad merge?UbitUmarov2015-09-011-0/+5
|\
| * Expect a missing directory, the asset cache is shared. Prevent spew ifMelanie Thielker2014-08-181-0/+5
| | | | | | | | two nodes run cleanup at the same time.
* | Make the IteratingUuidGatherer the only UuidGatherer.Justin Clark-Casey (justincc)2015-01-081-7/+7
| | | | | | | | | | This UUID gatherer provides a superset of the previous gatherer's functionality as it also allows the caller to control gathering iterations for load purposes.
* | Updated OpenSim-as-addin version from 0.5 to 0.8.1. The addin version number ↵Diva Canto2014-12-291-1/+1
| | | | | | | | doesn't need to match the release version number, but I think it's a very good idea that they do.
* | Make "fache assets" console command more efficient by only updating access ↵Justin Clark-Casey (justincc)2014-12-051-17/+24
| | | | | | | | times on each cached asset once, not for every reference.
* | If "fcache assets" is executed, don't stop with an exception if there's an ↵Justin Clark-Casey (justincc)2014-12-041-2/+1
| | | | | | | | | | | | access violation if another thread is operating on the file at the same time. Resolves one issue from http://opensimulator.org/mantis/view.php?id=7271
* | refactor: breakout flotasm cache last file access time to separate ↵Justin Clark-Casey (justincc)2014-12-041-7/+19
| | | | | | | | UpdateFileLastAccessTime() method for imminent reuse.
* | Don't worry about checking FlotsamAssetCache.m_CurrentlyWriting when ↵Justin Clark-Casey (justincc)2014-12-041-8/+1
| | | | | | | | | | | | updating access time. The majority of updates won't be for anything currently writing and any sharing exception from an actual clash can be caught and ignored anyway.
* | refactor: Move methods to start a monitored thread, start work in its own ↵Justin Clark-Casey (justincc)2014-11-251-2/+2
| | | | | | | | | | | | | | | | thread and run work in the jobengine from Watchdog to a WorkManager class. This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management. Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget. Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
* | Label all threadpool calls being made in core OpenSimulator. This is to add ↵Justin Clark-Casey (justincc)2014-11-251-1/+1
| | | | | | | | | | | | problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats.
* | refactor: consistently put all test classes in the OpenSim.Tests.Common ↵Justin Clark-Casey (justincc)2014-11-251-1/+0
| | | | | | | | | | | | package rather than some in OpenSim.Tests.Common.Mock the separate mock package was not useful and was just another using line to always add
* | For monitoring purposes, start non-timeout tasks (which do not currently use ↵Justin Clark-Casey (justincc)2014-09-051-1/+3
| | | | | | | | | | | | | | a threadpool) via Watchdog.RunInThread() rather than Util.RunThreadNoTimeout() The functionality is the same but this allow us to monitor such tasks via "show threads" and abort them for test purposes, etc. Also extends thread names to provide more info (e.g. SendInitialDataToClient says what client the task is for).
* | Actually call Close() for shared region modules when the simulator is being ↵Justin Clark-Casey (justincc)2014-07-021-3/+6
| | | | | | | | | | | | shutdown. Adds regression test for this case.
* | Added assets service method AssetsExist(), which returns whether the given ↵Oren Hurvitz2014-04-021-0/+12
| | | | | | | | | | | | list of assets exist. This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
* | - Increased the threadpool timeout to 10 minutesOren Hurvitz2014-03-261-2/+2
|/ | | | - Changed a few places that launch long-lasting threads to skip the timeout altogether
* Materials module: a) Store materials as assets; b) Finalized it (removed the ↵Oren Hurvitz2014-01-201-2/+2
| | | | | | "Demo" label; removed most of the logging); c) Enabled by default Changed UuidGatherer to use 'sbyte' to identify assets instead of 'AssetType'. This lets UuidGatherer handle Materials, which are defined in a different enum from 'AssetType'.
* Remove redundant methods in FlotsamAssetCacheJustin Clark-Casey (justincc)2014-01-181-10/+0
|
* implement CoreAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-1/+2
|
* implement GlynnTuckerAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-1/+1
|
* Properly implement CenomeAssetCache.Check()Justin Clark-Casey (justincc)2014-01-181-2/+4
|
* Simplify FlotsamAssetCache.CheckFromMemoryCache()Justin Clark-Casey (justincc)2014-01-181-6/+1
|
* Elminate some copy/paste in FlotsamAssetCache.CheckFromFileCache() and use ↵Justin Clark-Casey (justincc)2014-01-181-33/+10
| | | | using() construct to ensure filestream is always closed
* elminate unnecessary asset != null check in FlotsamAssetCache.UpdateFileCache()Justin Clark-Casey (justincc)2014-01-181-50/+47
| | | | Passed in asset is always not null
* Committing the Avination Scene Presence and related texture codeMelanie2013-12-114-40/+144
| | | | | | | | | - Parts of region crossing code - New bakes handling code - Bakes now sent from sim to sim without central storage - Appearance handling changes - Some changes to sitting - A number of unrelated fixes and improvements
* Make "fcache status" command also display information on disk/mem cache hit ↵Justin Clark-Casey (justincc)2013-10-301-18/+38
| | | | rate that is currently only displayed if LogLevel >=1 in [AssetCache] config
* Put fcache commands output to console, not logJustin Clark-Casey (justincc)2013-10-301-28/+25
|
* In the flotasm asset cache, if we get a request for a file that we're ↵Justin Clark-Casey (justincc)2013-03-301-25/+27
| | | | actively writing, simply return null instead of first logging an exception.
* Don't allow exceptions to propogate from FlotsamAssetCache which may occur ↵Justin Clark-Casey (justincc)2013-02-081-32/+57
| | | | | | when deleting expired files or stamping the region status file. Changes various error level log lines to warn since these are not fatal to the operation of OpenSimulator
* Log missing assets on "fcache assets" found. This ignores references found ↵Justin Clark-Casey (justincc)2013-02-021-15/+26
| | | | | | | | by scanning LSL/notecard files since these are the source of false positives. This also changes UuidGatherer to reutn an AssetType.Unknown for embedded script/lsl references instead of Texture, since these are often not textures. This is added to help people in determining when they have missing assets such as textures, etc. In this case, one wants to run "fcache clear" first.
* minor: Fix more compiler warnings in CoreModules tests by properly ↵Justin Clark-Casey (justincc)2012-12-051-1/+3
| | | | overriding OpenSimTestCase.SetUp()
* Consistenly make NUnit test cases inherit from OpenSimTestCase which ↵Justin Clark-Casey (justincc)2012-11-241-1/+1
| | | | automatically turns off any logging enabled between tests
* Possibly fixes mantis #6429 (Flotsam cache having a null ref to the asset ↵Diva Canto2012-11-141-4/+2
| | | | service)
* Another 21 modules' directives moved out of .addin.xmlDiva Canto2012-11-133-0/+6
|
* Cleanup on region modules: gave short node id's to all of them.Diva Canto2012-11-121-1/+1
|
* Cleaning up some confusion with Addin names introduced in a prior commit. ↵Diva Canto2012-11-101-2/+2
| | | | Also the Flotsam cache module was being given a different Addin name, I removed that.
* For FlotsamAssetCache, always update access times of cached scene assets ↵Justin Clark-Casey (justincc)2012-09-151-20/+17
| | | | | | | | before looking for files to expire. This is to resolve a problem where an asset marked as local but not temporary but still used in the scene would be removed. The timed expiry scan no longer tries to refetch assets from the scene that are not currently in the cache - this is not helpful since it just drags a lot of data into the cache that may never be referenced. This removes the DeepScanBeforePurge option since setting this to false will introduce the above problem. This previously had a default of true.