Difference between revisions of "User:Becky Pippen/Memory Limits FAQ"

From Second Life Wiki
Jump to navigation Jump to search
m
m (Added Q: Will the limits be per avatar or per region?)
Line 12: Line 12:
'''Q:''' When will all this happen?
'''Q:''' When will all this happen?
: '''A:''' At some time around the first quarter of 2010, the Linden engineers will have figured out the exact limits and policies. After the official announcements, we'll have several months where we can experiment with the new LSL functions and tools on the preview grid, then on the main grid before the limits are enforced sometime later in 2010.
: '''A:''' At some time around the first quarter of 2010, the Linden engineers will have figured out the exact limits and policies. After the official announcements, we'll have several months where we can experiment with the new LSL functions and tools on the preview grid, then on the main grid before the limits are enforced sometime later in 2010.
'''Q:''' Will the limits be per avatar or per region?
: '''A:''' That hasn't been determined yet, but it will probably involve limits on avatar, parcel, and region in a way that parallels [[LSL_http_server#Resource_Limitations|how URL resources are managed]].


'''Q:''' Will Linden Lab pay for all the scripted products we bought that will no longer work?
'''Q:''' Will Linden Lab pay for all the scripted products we bought that will no longer work?

Revision as of 14:47, 16 January 2010

FAQ - Script Memory Limits

Q: Why do we need script memory limits?

A: In some regions, the simulator uses so much script memory that it has to swap virtual memory to disk. That causes major lag, and lag is among the top complaints about Second Life.

Q: How can I tell if I'm a heavy script user?

A: There are two ways: According to Babbage Linden, we'll have new ways built into the sim and viewer to see our individual script memory usage, similar to how estate managers can see top scripts in a region. Also scripters can use the function llGetFreeMemory() to get an approximate idea of memory usage.

Q: Will this break content?

A: Yes, some. The limits are specifically designed to limit the worst 5% of memory consumers so that the remaining 95% can continue to run freely without causing the simulator to swap virtual memory.

Q: When will all this happen?

A: At some time around the first quarter of 2010, the Linden engineers will have figured out the exact limits and policies. After the official announcements, we'll have several months where we can experiment with the new LSL functions and tools on the preview grid, then on the main grid before the limits are enforced sometime later in 2010.

Q: Will the limits be per avatar or per region?

A: That hasn't been determined yet, but it will probably involve limits on avatar, parcel, and region in a way that parallels how URL resources are managed.

Q: Will Linden Lab pay for all the scripted products we bought that will no longer work?

A: Most products are reasonably scripted and will continue to work just fine. The only problematic products will be unusual ones that are scripted in ways that use unreasonable amounts of RAM. Try to get the product creator to make a new version that uses less memory.

Q: Will we see a reduction in lag across the grid?

A: It won't have a major impact on most regions. However, it will make a huge improvement on the 5% of the regions that use so much script memory that the server has to swap virtual memory to disk. Theoretically it might also somewhat improve performance on any other simulators running on the same server host using the same disk resources.

Q: How much RAM are we talking about?

A: In the 95% of the regions that run smoothly, the simulator uses less than 800MB of RAM for everything except scripts, and up to 300MB for all the scripts in the region, and that's ok. In the worst 5% of the regions, simulators use up to 2GB of RAM on the server, and that's not ok.

Q: Why not just add RAM to the servers? RAM is cheap.

A: Several thousand Xeon server boards at, say, US$100 each to upgrade, comes out to a bunch of money, even for Linden Lab. Somebody would have to pay for that, and it wouldn't be from residents with free accounts.

Q: Who will be affected?

A: All scripts, old and new, will be subject to the new memory limits. When planning for the memory limits, Babbage Linden said, "[2009/11/25 3:43] Babbage Linden: ideally we'd like to have 95+% of people use scripts as they currently do while still having 95+% of simulators running without swapping".

Q: What can I do as a content creator to prepare?

A: Be kind to your customers and give them product updates using the new efficient LSL functions when they become available. Learn more about how to measure memory usage and the scripting techniques for reducing memory.

Q: What can I do as a customer?

A: 95% of scripts are just fine and you don't need to do anything. If you are wearing hair, shoes, or other attachments with a script in every prim, then you can contact the creator and ask if there is a product update that uses the new LSL memory-efficient functions.