[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    [Quanta] Slowness when opening large projects
From:       Sasha Andric <sasha () goldnet ! ca>
Date:       2005-09-12 14:25:54
Message-ID: 200509121125.55103.sasha () goldnet ! ca
[Download RAW message or body]


When opening project in quanta (svn 3.5 branch) it goes through rescanning  
project files and reading them and this takes a few minutes with very large 
projects (thousands of file) and about 30 seconds with medium ones (hundreds 
of files). 

Initially small progress bar shows up in the status tray and that gets to 100% 
in seconds. After that rescanning starts.  During this time  CPU usage is 
close to 100%. With this particular project it takes a few minutes to get it 
up and running. This project has thousands of files located on NFS mount.

Below is small chunk of the trace of this process. Notice how the files opened 
are not in any order.  The thing just jumps all over the place which does not 
make it too efficient. The other question is, should it really be reading the 
files. If it has to scan them, maybe it should just check that they do exists 
and maybe it should do entire directory at the time rather then jumping 
around.

Sasha



read(5, "\0", 1)                        = 1
gettimeofday({1126534256, 255136}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1126534256, 255887}, NULL) = 0
select(18, [3 4 5 7 9 11 12 13 14 15 16 17], [], [], {0, 440}) = 0 (Timeout)
gettimeofday({1126534256, 256160}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1126534256, 256210}, NULL) = 0
select(18, [3 4 5 7 9 11 12 13 14 15 16 17], [], [], {0, 117}) = 0 (Timeout)
gettimeofday({1126534256, 257298}, NULL) = 0
getcwd("/home/ethx", 4096)              = 11
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work", {st_mode=S_IFDIR|
0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work/sac", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager/img", \
 {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager/img/measure.gif", \
 {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
chdir("/home/ethx")                     = 0
stat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager/img/measure.gif", \
 {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
stat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager/img/measure.gif", \
 {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
open("/home/ethx/tnt_home/public_html/dotproject/work/sac/xinha/plugins/ImageManager/img/measure.gif", \
 O_RDONLY|O_LARGEFILE) = 18
fstat64(18, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0644, st_size=184, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb5c0a000
read(18, "GIF89a\24\0\24\0\221\0\0ff\231\377\377\377\331\331\331"..., 4096) = 
184
close(18)                               = 0
munmap(0xb5c0a000, 4096)                = 0
gettimeofday({1126534256, 273628}, NULL) = 0
gettimeofday({1126534256, 273806}, NULL) = 0
ioctl(3, FIONREAD, [0])                 = 0
gettimeofday({1126534256, 273865}, NULL) = 0
select(18, [3 4 5 7 9 11 12 13 14 15 16 17], [], [], {0, 1763}) = 0 (Timeout)
gettimeofday({1126534256, 277391}, NULL) = 0
getcwd("/home/ethx", 4096)              = 11
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work", {st_mode=S_IFDIR|
0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work/sac", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs", 
{st_mode=S_IFDIR|0744, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs/apidoc", \
 {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs/apidoc/Services_PayPal", \
 {st_mode=S_IFDIR|0700, st_size=12288, ...}) = 0
lstat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs/apidoc/Services_PayPal/TransactionSearchRequestType.html", \
 {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
chdir("/home/ethx")                     = 0
stat64
("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs/apidoc/Services_PayPal/TransactionSearchRequestType.html", \
 {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
open("/home/ethx/tnt_home/public_html/dotproject/work/sac/admin/Services_PayPal/docs/apidoc/Services_PayPal/TransactionSearchRequestType.html", \
 O_RDONLY|O_LARGEFILE) = 18
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb5c0a000
read(18, "<?xml version=\"1.0\" encoding=\"is"..., 4096) = 4096
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
fstat64(18, {st_mode=S_IFREG|0700, st_size=39174, ...}) = 0
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic