These forums are CLOSED. Please visit the new forums HERE
Does the size of Chat History files affect anything? |
|
|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
09-12-2009 20:06
Do big chat history files slow SL down any?
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them. I can be found on the web by searching for "SuezanneC Baskerville", or go to http://www.google.com/profiles/suezanne - http://lindenlab.tribe.net/ created on 11/19/03. Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan - |
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
09-12-2009 20:42
Chat logging is a pig, but the file size shouldn't make a huge difference unless the OS is doing something particularly wacky. All the work is done in newview/lllogchat.cpp, it's pretty vanilla stdio stuff.
It's a little piggy because the log file for chat or IM is f open()'d in append mode, the line written, and the file closed separately for every single line written To get the history when a new window opens, it's using an fseek from the end. |
|
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
|
09-12-2009 21:50
It's a little piggy because the log file for chat or IM is f open()'d in append mode, the line written, and the file closed separately for every single line written ![]() |
|
Kidd Krasner
Registered User
Join date: 1 Jan 2007
Posts: 1,938
|
09-13-2009 08:26
Chat logging is a pig, but the file size shouldn't make a huge difference unless the OS is doing something particularly wacky. All the work is done in newview/lllogchat.cpp, it's pretty vanilla stdio stuff. It's a little piggy because the log file for chat or IM is f open()'d in append mode, the line written, and the file closed separately for every single line written To get the history when a new window opens, it's using an fseek from the end.Assuming it's using a standard C library layered on top of MS Windows (as opposed to using MS OS calls directly), I wish I could remember how NTFS and/or FAT performance compares to Linux, etc. on those calls. There may be no difference, it may even be faster on NTFS/FAT, I just don't know the state of the world these days. Anyone else able to comment? |
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
09-13-2009 10:03
No special casing for Windows in terms of native stuff, except that it uses _wfopen instead of fopen.
|
|
DanielRavenNest Noe
Registered User
Join date: 26 Oct 2006
Posts: 1,076
|
09-13-2009 10:32
So if your chat.txt file is 120MB like mine, any point in splitting off the old stuff to a backup file?
|
|
LittleMe Jewell
...........
Join date: 8 Oct 2007
Posts: 11,319
|
09-13-2009 10:35
So if your chat.txt file is 120MB like mine, any point in splitting off the old stuff to a backup file? _____________________
♥♥♥
-Lil Why do you sit there looking like an envelope without any address on it? ~Mark Twain~ Optimism is denial, so face the facts and move on. ♥♥♥ Lil's Yard Sale / Inventory Cleanout: http://slurl.com/secondlife/Triggerfish/52/27/22 . http://www.flickr.com/photos/littleme_jewell |
|
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
|
09-13-2009 11:43
Assuming it's using a standard C library layered on top of MS Windows (as opposed to using MS OS calls directly), I wish I could remember how NTFS and/or FAT performance compares to Linux, etc. on those calls. There may be no difference, it may even be faster on NTFS/FAT, I just don't know the state of the world these days. Anyone else able to comment? FWIW, I have over 100MB of chat logs dating back from late last year, and notice absolutely no degradation of performance because of them. _____________________
Of course, its all just another conspiracy, and I'm a conspiracy nut. Need a high-quality custom or pre-fab home? Please check out my XStreetSL Marketplace at http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=231434/ or IM me in-world. |
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
09-13-2009 12:19
A typical syslogd will leave the files open, and sequential is easy. The constant opening and closing in SL is a potential bottleneck. That kind of thing used to be ouchful, caches should have taken away most of the pain on just about any OS by now. It can still hurt if the storage is slow because you aren't getting any buffering inside the application.
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
09-13-2009 12:33
In UNIX, if you open a file in append mode, there's an implicit seek to the end before every write, regardless of where the seek offset is before then. This is oldschool stuff from the '70s.
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/
"And now I'm going to show you something really cool." Skyhook Station - http://xrl.us/skyhook23 Coonspiracy Store - http://xrl.us/coonstore |