Hi again,
I just did some testing and found out that it is the hyperlinks that
make saving my 109Kb .odt document to a network drive
cause 33,8 Mb of network traffic.
It appears that when OO is parsing the document for saving,
each hyperlink it comes across causes it to go open and close the
folder of the document and the document it self several times.
This of course couses lot of delay and network traffic overhead.
When saving to a local harddisk this is not a big issue because
delays are so short, but when saving to a network drive it becomes
extremely slow if document has lots of hyperlinks.
Could someone tell me is this a bug or a feature?
-Saku
Saku Seppälä wrote:
Hi,
I recently filed a bug about saving file to network drive is slow.
http://www.openoffice.org/issues/show_bug.cgi?id=50983
To summarize I have a 109 Kb .odt document that takes 40 sec
to save to a local harddisk and saving the same document to
a network drive takes about 2min 15sec on athlon 2200+ with
a 100Mbps unused LAN connection.
The bug report was closed as invalid, noting just that saving to is
allways slower than to local a harddisk. Because this just does not
sound right to me that saving a small document over a high speed
network connection could take so long, I investigated this some
more myself. This is what I found out:
1.
By watching the system monitor I found that during the 2min 15sec
saving OO takes about 2.5% from the 100 Mbps connection.
Thats about (0.025 * 100 Mbps * 135s )/ 8 = 42Mb of data
transferd back and forth the line.
2.
Monitoring the sent and received bytes confirmed that saving the
document produced
Send bytes: 15 531 025
Received bytes: 18 295 856
Total: 33,8 Mb of data
So saving 110 kb document creates 33,8 Mb of network traffic.
3.
I also used a filemonitor to monitor filesystem activities during the
save
to find out what was happening. Monitoring the file revealed that
apparently OO checks the state of the file about 10 000 times which
shows as repetation of block of log data below in the filemonitor log
file.
This block repeats about 9350 times filemonitor log file.
# Time Process Request Path Result Other
<BLOCK>
76 11:41:20 soffice.bin:3664 OPEN
T:\network_save_test.odt SUCCESS Options: Open
Access: All 77 11:41:20 soffice.bin:3664 OPEN T:\
SUCCESS Options: Open Directory Access: All 78 11:41:20
soffice.bin:3664 DIRECTORY T:\ SUCCESS
FileBothDirectoryInformation: network_save_test.odt 79
11:41:20 soffice.bin:3664 CLOSE T:\ SUCCESS 80
11:41:20 soffice.bin:3664 OPEN T:\ SUCCESS Options:
Open Directory Access: All 81 11:41:20 soffice.bin:3664
DIRECTORY T:\ SUCCESS
FileBothDirectoryInformation: network_save_test.odt 82
11:41:20 soffice.bin:3664 OPEN T:\ SUCCESS Options:
Open Directory Access: All 83 11:41:20 soffice.bin:3664
DIRECTORY T:\ SUCCESS
FileBothDirectoryInformation: network_save_test.odt 84
11:41:20 soffice.bin:3664 CLOSE T:\ SUCCESS 85
11:41:20 soffice.bin:3664 CLOSE T:\ SUCCESS 86
11:41:26 soffice.bin:3664 OPEN T:\ SUCCESS Options:
Open Directory Access: All 87 11:41:26 soffice.bin:3664
DIRECTORY T:\ SUCCESS
FileBothDirectoryInformation: network_save_test.odt 88
11:41:26 soffice.bin:3664 CLOSE T:\ SUCCESS 89
11:41:26 soffice.bin:3664 OPEN T:\network_save_test.odt\
NOT A DIRECTORY
Options: Open Directory Access: All 90 11:41:26
soffice.bin:3664 OPEN T:\network_save_test.odt\ NOT A DIRECTORY
Options: Open Directory Access: All 91 11:41:26
soffice.bin:3664 OPEN T:\ SUCCESS Options: Open Directory
Access: All 92 11:41:26 soffice.bin:3664 DIRECTORY
T:\ SUCCESS
FileBothDirectoryInformation: network_save_test.odt 93
11:41:26 soffice.bin:3664 CLOSE T:\ SUCCESS 94
11:41:26 soffice.bin:3664 OPEN T:\network_save_test.odt\
NOT A DIRECTORY
Options: Open Directory Access: All </BLOCK>
I have taken some computer sciense courses and done some
programming (not OO), but I'm no expert in this. I just would
like to know is this really acceptable that saving a small document
uses this much resources. I just think there is some thing wrong in
the way OO saves documents if saving a document creates this
much network traffic.
For more info look and comment about:
http://www.openoffice.org/issues/show_bug.cgi?id=50983
Thanks for your help in advance.
Saku Seppälä
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]