View previous topic :: View next topic |
Author |
Message |
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Tue May 02, 2006 11:27 am Post subject: NeoOffice 2.0 Alpha PowerPC memory usage |
|
FYI. Fabrizio filed bug 1418 regarding high memory usage in Neo 2.0 Alpha PowerPC. While Patch 2 fixed the high memory usage for large text documents, I am still working on reducing memory usage for large images.
I have started posting test patches with some very dramatic reductions in memory usage for images in that bug. The code may or not work well, but if you have large image documents, I invite testers to try out any test patches that I post in that bug and add any breakages that you see between the test patches and Patch 2.
Patrick |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed May 03, 2006 2:33 pm Post subject: |
|
FYI. I posted a new test patch in bug 1418. The latest includes optimized printing of images. My optimization now bypasses Java entirely when printing images and, instead, prints directly using Mac OS X's native APIs.
Please try this code out if you can as I'd like to include this code in new official Neo 2.0 Alpha PowerPC patch before the EAP drops to US$10 next week.
Thanks,
Patrick |
|
Back to top |
|
|
toonetown Keymaker
Joined: Apr 21, 2006 Posts: 95 Location: Utah, USA
|
Posted: Wed May 03, 2006 3:27 pm Post subject: |
|
Are these patches against the EAP patch release, or do you have to apply them to CVS? (Basically, I'm building from CVS HEAD - do I need to just update to get these for testing?) |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Wed May 03, 2006 3:52 pm Post subject: |
|
If you are building from CVS HEAD, applying the patch should work since I build the patch from my HEAD build. Also, since anoncvs can be up to 12 hours behind my commits, you may or may not see my commits immediately.
Also, note that you should remember the following:
1. Always do a "cvs update -d" as the "-d" is needed to pick up any new directories that I have added.
2. When doing a cvs update, looking for files with a "C" status. This indicates that I have added a new file where previously I softlinked to the OOo code. You will need to delete any such softlinks and cvs update again.
3. The Neo build is designed around preventing rebuilding so don't expect the Neo portions of the code to automatically rebuild after a cvs update. Instead, you need to manually force rebuilding of any Neo modules that have updated or new files by deleting the module's build.neo_<module>_patch file before you invoke make.
Failure to do any of these will give you a tweaked or corrupted build.
Patrick |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu May 04, 2006 5:43 pm Post subject: |
|
Has anyone noticed any difference with the test patch? Note that this was a major change and I would really like to know if there are any problems before I spin the next early access patch and binary this weekend.
Patrick |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Thu May 04, 2006 7:07 pm Post subject: |
|
I'll rebuild tonight. I've got mixtures of graphics heavy and text heavy spec documents of mine with me (200pg+) and will see if I can get out memory stats b4 and after.
ed |
|
Back to top |
|
|
valterb The Anomaly (earlier version)
Joined: Sep 23, 2005 Posts: 463 Location: San Giuliano Terme, Pisa, Italy
|
Posted: Thu May 04, 2006 10:09 pm Post subject: |
|
Patrick, I don't know if the problem is the same you try to fix (and if I have understood how to check the ram usage: I'm viewing this with "Monitoraggio attività ", don't know the name in english but is the graphical way for "top"), but I noticed that opening the same document onwith NeoOffice-2.0_Alpha-Patch-2-Test-2-PowerPC and with OOo2.0.1, both with italian localization, results in a huge difference in ram usage.
For NeoOffice I have 117 MB real memory usage and 874 MB of virtual memory.
For OOo2.0.1 I have 84 MB of real memory and 268 MB of virtual memory.
Is it expected (due to differences of the two software)??
Valter |
|
Back to top |
|
|
OPENSTEP The One
Joined: May 25, 2003 Posts: 4752 Location: Santa Barbara, CA
|
Posted: Thu May 04, 2006 10:12 pm Post subject: |
|
The increase in VM usage for Neo is expected due to the Mac VM "pregrabbing" memory for itself even if it is not used. This is the way the Apple VM works and is unavoidable. Unused VM still should not translate to an increase in swap file on hard drive until that memory is actually accessed, so the VM size is really a bogus number.
The "real" memory usage seems fine to me. Other thoughts?
ed |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu May 04, 2006 10:28 pm Post subject: |
|
valterb wrote: | For NeoOffice I have 117 MB real memory usage and 874 MB of virtual memory.
For OOo2.0.1 I have 84 MB of real memory and 268 MB of virtual memory.
Is it expected (due to differences of the two software)?? |
Yes. It is expected. Neo will always use more memory than OOo X11 because 1) we use Java, 2) we use native fonts, and 3) and do native text layout and printing. All these require memory. With X11, there are few fonts and they are not native. That alone reduces memory usage as loading Mac OS X's Japanese, Chinese, and other big fonts consumes lots more memory than the tiny (and not very good looking) X11 fonts.
Also, ignore virtual memory as Java "preallocates" the maximum possible memory that it might use. Resident memory is the figure that I am most concerned about.
Patrick |
|
Back to top |
|
|
valterb The Anomaly (earlier version)
Joined: Sep 23, 2005 Posts: 463 Location: San Giuliano Terme, Pisa, Italy
|
Posted: Thu May 04, 2006 10:57 pm Post subject: |
|
Quote: | Resident memory is the figure that I am most concerned about. |
Excuse my bad knowledge of this, but how can I check "resident" memory.?
(possibly the italian term is quite different. I can see "memoria privata" wich means private memory and "memoria condivisa" that means shared memory)
Valter |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Thu May 04, 2006 11:02 pm Post subject: |
|
"resident" and "real" are the same thing.
Patrick |
|
Back to top |
|
|
LemonAid The Anomaly
Joined: Nov 21, 2005 Posts: 1285 Location: Witless Protection Program
|
Posted: Fri May 05, 2006 1:23 am Post subject: |
|
Patrick,
I downloaded your new patch and tested with "l'ultima avventura del signor bonaventura.odt".
Activity Monitor results: 8168 NeoOffice philip 31.90 15 155.19 MB 1.03 GB
about 155 MB when doing a Print -> Preview. Memory looks reasonable. Just a simple test but seem to show your patch is ... working/doing something good.
Philip ( ) |
|
Back to top |
|
|
sardisson Town Crier
Joined: Feb 01, 2004 Posts: 4588
|
Posted: Fri May 05, 2006 2:17 am Post subject: |
|
I did a quick test with a Draw document that I basically could not work on in Neo 1.2 due to perf issues (11x17, ca. 850 objects--imported vector pict of genealogical stuff--but all of 20K in filesize).
I was very impressed with the responsiveness of an un-modded Patch-2: moving all the objects 1px only took about 30 seconds, and when printing, there was enough memory to show the OOo printing dialogue box!
Some quick memory stats:
*un-modded Patch-2 (1.5 GB of RAM in this PB)
After launching Neo 2 (app-only, to a blank Writer doc): 91 MB real mem
After closing Writer doc and opening HW.sxd: 210 MB
After moving 1px and printing to PDF: 226 MB
After closing document and reopening it: 232 MB
* Quit Neo 2, install Test Patch 3:
After launching Neo 2: 134 MB real mem
After opening HW.sxd: 263 MB
After moving 1px and printing to PDF: 276 MB
After closing document and reopening it: 277 MB
"Performance" (responsiveness) was still the same with the test patch as unmodded, but the memory usage seems higher in these rough tests. I don't work on it often, and it's certainly an edge-case on the high end with that many objects, and the rought tests might be poor indicators...so I'm more than happy with being able to edit it usefully in Neo 2 instead of needing Neo/J 1.1
Patrick, if you're interested in testing with this document, I can email it to you privately.
Smokey _________________ "[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki |
|
Back to top |
|
|
fabriziovenerandi Keymaker
Joined: Oct 12, 2004 Posts: 77 Location: italia
|
Posted: Fri May 05, 2006 2:19 am Post subject: |
|
I have done some fast basic tests and it seems to works fine, it does not seem to me faster nor slower than the neooffice 1.x release and the memory usage is more or less the same.
unfortunately I can not use neooffice 2 at office (for Oo base problems, not neo's ones) so I use neooffice 2 only on my powerbook. so to have a deep test I have to wait to be alone, no children around, cleaned house, blackberry bush cutted, et ceterae. It's a hard life for betatester too.
If i'll meet with other problems I'll report as soon as I can.
f. _________________ eadem sed non eodem modo facere |
|
Back to top |
|
|
pluby The Architect
Joined: Jun 16, 2003 Posts: 11949
|
Posted: Fri May 05, 2006 9:17 am Post subject: |
|
sardisson wrote: | Patrick, if you're interested in testing with this document, I can email it to you privately. |
Yes. Please send it to me.
Patrick |
|
Back to top |
|
|
|