RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 02, 2008, 08:28:11 am
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Features (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Memory Use Enhancement, please?
Advanced search
  « previous next »
Pages 1
Author
Topic: Memory Use Enhancement, please?  (Read 1502 times)
« on: July 23, 2008, 11:41:05 pm »
Patrick Finnicum Offline
Newbie
*
Posts: 1



Hello,

First of all, I absolutely love this piece of software - usability and intuitiveness is outstanding.  Thus, I'm hoping to contribute to help improve.

I've been seeing some memory usage which I consider questionable.  I honestly don't have the time to dig into the code and determine if its a Joomla thing, php thing, or a RSGallery2 thing.  I was running out of memory at 256M, but this is a dedicated machine for serving up web content.  So, I had to bump it up to 512M just to add a new subgallery.

System: 
Ubuntu Hardy
Joomla 1.5.3 stable
RSGallery2 2.0.0b1
Current albums:  7 parent galleries, 54 in the next level down.  61 rows in the galleries table.  3k data size for the table.

So, to track down where the memory is going, I had a teminal window open with Top running so I could see the memory change.  The following is the sequence of events followed by what the memory reported AFTER the action.  So, it will list the action that I did, and then what the memory showed after doing that action.

Start - 93M in use for the OS
Login to Joomla page renders - 102M
Login as admin - 107M
Go to RSGallery2 / Galleries - 120M  (!!!)
Click the "New" icon.  Page renders - 129M (!!!)
Enter name of new gallery, assign a parent item, click save - 135M (!!!)
Click the "New" icon.  Page renders - 144M
Enter name of new gallery, assign a parent item, click save - 144M
Click the "New" icon.  Page renders - 144M
Enter name of new gallery, assign a parent item, click save - 144M
(third time is a charm, and it seemed to stabilize after this)

Although I don't seek an explanation, I can see some serious load going on and wondering if improvements could be made to optimize the memory in several spots.

I didn't do any memory analysis of uploading single or batch, but would be happy to look at that if someone already hasn't.

Thanks for listening!
Logged
 
Reply #1
« on: August 18, 2008, 09:39:44 pm »
Chef Groovy Offline
Dev Team
Full Member
*
Posts: 110

WWW


Yeah, I've noticed it too, havn't done a in depth analysis of it, but I got a feeling uploading a batch eats up a lot of memory and/or process time.  I got booted from a cheapy shared server because of it.

Is the memory usage the same when do same thing 2nd time? Maybe some cache getting built somewhere?

There is nothing overwhelming in the code for making galleries. It does cycle through parents and children recursively to build the list to select where to insert the new gallery to. Only thing I can think of is building the gallery list i using the memory  (Huh

Maybe try the same memory tests when entering a new article directly in joomla. or making a section/category.  Not really the same thing, but anyways..

Maybe disable the gallery list in the admin screen and force new galleries to goto "top" and see what memory does.  If you don't code, maybe I could make you a branch to mess around with.

Logged

Chef Groovy
RSGallery2: Legacy - Dev
Test Site: dev.fantasyartwork.net
 
Print  Pages 1
« previous next »
Jump to: