Re: LyX slow in Windows XP
Abdelrazak Younes schrieb: Daniel Lohmann wrote: Could you provide the results for the CSRSS.EXE process as well? See below but I don't see much of a difference. I've passed the "-j" option to let it find the .pdb but it can't seem to find the debug symbols apparently... Hm... I do not see a lot in that either :-/ A lot of ntdll calls, which basically means a lot of interaction with the non-GUI parts of the kernel. It is also a bit confusing that the distribution over the different modules in the Lyx process is very different from your last shot. If there is really a "hot spot" it should be similar in every take. I would be nice if you could find out. Well, maybe it is time to confess that I am neither a Lyx developer nor have any experience with kernrate. (I know, however, a lot about Windows internals.) Some "real" LyX developer around who is following this? I think it would be good to have the debug symbols to zoom into the most frequently used modules in both processes to find out which functions they are actually executing. Daniel D:\program\KrView\Kernrates>Kernrate_i386_XP.exe -w 10 -s 30 -p 416 -pd 2064 -j "D:\devel\lyx\t runk\development\cmake\bin\debug" ===> Found process: csrss.exe, Pid: 416 ===> Found process: lyx-qt4.exe, Pid: 2064 PID = 2064: Source=, Time, Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events/hit PID = 416: Source=, Time, Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events/hit /==\ < KERNRATE LOG > \==/ Date: 2006/10/18 Time: 11:55:12 Machine Name: YNS-ML Number of Processors: 1 PROCESSOR_ARCHITECTURE: x86 PROCESSOR_LEVEL: 15 PROCESSOR_REVISION: 0204 Physical Memory: 1024 MB Pagefile Total: 2462 MB Virtual Total: 2047 MB PageFile1: \??\D:\pagefile.sys, 1536MB OS Version: 5.1 Build 2600 Service-Pack: 2.0 WinDir: C:\WINDOWS Kernrate User-Specified Command Line: Kernrate_i386_XP.exe -w 10 -s 30 -p 416 -pd 2064 -j D:\devel\lyx\trunk\development\cmake\bin\de bug Waiting for 10 seconds before starting to collect profile data Starting to collect profile data Will collect profile data for 30 seconds ===> Finished Collecting Data, Starting to Process Results Overall Summary:-- P0 K 0:00:16.663 (55.5%) U 0:00:13.339 (44.5%) I 0:00:00.000 ( 0.0%) DPC 0:00:00.020 ( 0 .1%) Interrupt 0:00:00.270 ( 0.9%) Interrupts= 19145, Interrupt Rate= 638/sec. Total Profile Time = 30003 msec BytesStart BytesStop BytesDiff. Available Physical Memory , 298483712, 296308736, -2174976 Available Pagefile(s) , 1751339008, 1751523328, 184320 Available Virtual , 2131570688, 2131570688, 0 Available Extended Virtual , 0, 0, 0 Total Avg. Rate Context Switches , 1868893, 62290/sec. System Calls , 2477539, 82576/sec. Page Faults , 2415, 80/sec. I/O Read Operations , 361, 12/sec. I/O Write Operations , 116, 4/sec. I/O Other Operations , 2811, 94/sec. I/O Read Bytes , 8950, 25/ I/O I/O Write Bytes ,41894, 361/ I/O I/O Other Bytes , 397231, 141/ I/O Results for User Mode Process LYX-QT4.EXE (PID = 2064) User Time = 42.69% of the Elapsed Time Kernel Time = 20.09% of the Elapsed Time Total Avg. Rate Page Faults , 1962, 65/sec. I/O Read Operations ,0, 0/sec. I/O Write Operations ,0, 0/sec. I/O Other Operations ,0, 0/sec. I/O Read Bytes ,0, 0/ I/O I/O Write Bytes ,0, 0/ I/O I/O Other Bytes ,0, 0/ I/O Start-Count Stop-Count Diff. Threads , 2, 2, 0 Handles , 103, 103, 0 Working Set Bytes , 8929280,11812864, 2883584 Virtual Size Bytes ,88453120,88453120, 0 Paged Pool Bytes, 60056, 60056, 0 Non Paged Pool Bytes,3720,3720, 0 Pagefile Bytes , 8540160, 8540160, 0 Private Pages Bytes , 8540160, 8540160, 0 ---
Re: LyX slow in Windows XP
Daniel Lohmann wrote: Results for User Mode Process LYX-QT4.EXE (PID = 3344) User Time = 15.07% of the Elapsed Time Kernel Time = 11.18% of the Elapsed Time Total Avg. Rate Page Faults , 5692, 95/sec. This looks highly suspicious and could be the reason why the csrss.exe program is taking all the cpu. I don't think so. Compared to Linux, Windows trims the working sets of processes quite aggressively, which can result in a high number of page faults. However, the freed ages are not actually removed from RAM, but moved into the system cache and restored from there in case of a page fault. Hence, a high number of page faults does not automatically imply performance problems. Moreover, this data is from the Lyx process and not from CSRSS where, AFAIR, the CPU clocks are actually eaten. The only thing I can see is that the process spends most of its time in the QtGui4 module, which in turn might well lead to a high number of interactions with CSRSS. Could you provide the results for the CSRSS.EXE process as well? See below but I don't see much of a difference. I've passed the "-j" option to let it find the .pdb but it can't seem to find the debug symbols apparently... As a wild guess I would assume a problem with some QT constructs interacting badly with Win32 User/GDI. I have this slight feeling I had seen similar problems with other QT applications on Windows, but I am not really sure. I would be nice if you could find out. Daniel Thanks for the help, Abdel. D:\program\KrView\Kernrates>Kernrate_i386_XP.exe -w 10 -s 30 -p 416 -pd 2064 -j "D:\devel\lyx\t runk\development\cmake\bin\debug" ===> Found process: csrss.exe, Pid: 416 ===> Found process: lyx-qt4.exe, Pid: 2064 PID = 2064: Source=, Time, Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events/hit PID = 416: Source=, Time, Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events/hit /==\ < KERNRATE LOG > \==/ Date: 2006/10/18 Time: 11:55:12 Machine Name: YNS-ML Number of Processors: 1 PROCESSOR_ARCHITECTURE: x86 PROCESSOR_LEVEL: 15 PROCESSOR_REVISION: 0204 Physical Memory: 1024 MB Pagefile Total: 2462 MB Virtual Total: 2047 MB PageFile1: \??\D:\pagefile.sys, 1536MB OS Version: 5.1 Build 2600 Service-Pack: 2.0 WinDir: C:\WINDOWS Kernrate User-Specified Command Line: Kernrate_i386_XP.exe -w 10 -s 30 -p 416 -pd 2064 -j D:\devel\lyx\trunk\development\cmake\bin\de bug Waiting for 10 seconds before starting to collect profile data Starting to collect profile data Will collect profile data for 30 seconds ===> Finished Collecting Data, Starting to Process Results Overall Summary:-- P0 K 0:00:16.663 (55.5%) U 0:00:13.339 (44.5%) I 0:00:00.000 ( 0.0%) DPC 0:00:00.020 ( 0 .1%) Interrupt 0:00:00.270 ( 0.9%) Interrupts= 19145, Interrupt Rate= 638/sec. Total Profile Time = 30003 msec BytesStart BytesStop BytesDiff. Available Physical Memory , 298483712, 296308736, -2174976 Available Pagefile(s) , 1751339008, 1751523328, 184320 Available Virtual , 2131570688, 2131570688, 0 Available Extended Virtual , 0, 0, 0 Total Avg. Rate Context Switches , 1868893, 62290/sec. System Calls , 2477539, 82576/sec. Page Faults , 2415, 80/sec. I/O Read Operations , 361, 12/sec. I/O Write Operations , 116, 4/sec. I/O Other Operations , 2811, 94/sec. I/O Read Bytes , 8950, 25/ I/O I/O Write Bytes ,41894, 361/ I/O I/O Other Bytes , 397231, 141/ I/O Results for User Mode Process LYX-QT4.EXE (PID = 2064) User Time = 42.69% of the Elapsed Time Kernel Time = 20.09% of the Elapsed Time Total Avg. Rate Page Faults , 1962, 65/sec. I/O Read Operations ,0, 0/sec. I/O Write Operations ,0, 0/sec. I/O Other Operations ,0, 0/sec. I/O Read Bytes ,0, 0/ I/O I/O Write Bytes ,0, 0/ I/O I/O Other Bytes ,0, 0/ I/O Start-Count Stop-Count Diff. Threads , 2, 2, 0 Handles ,
Re: LyX slow in Windows XP
Results for User Mode Process LYX-QT4.EXE (PID = 3344) User Time = 15.07% of the Elapsed Time Kernel Time = 11.18% of the Elapsed Time Total Avg. Rate Page Faults , 5692, 95/sec. This looks highly suspicious and could be the reason why the csrss.exe program is taking all the cpu. I don't think so. Compared to Linux, Windows trims the working sets of processes quite aggressively, which can result in a high number of page faults. However, the freed ages are not actually removed from RAM, but moved into the system cache and restored from there in case of a page fault. Hence, a high number of page faults does not automatically imply performance problems. Moreover, this data is from the Lyx process and not from CSRSS where, AFAIR, the CPU clocks are actually eaten. The only thing I can see is that the process spends most of its time in the QtGui4 module, which in turn might well lead to a high number of interactions with CSRSS. Could you provide the results for the CSRSS.EXE process as well? As a wild guess I would assume a problem with some QT constructs interacting badly with Win32 User/GDI. I have this slight feeling I had seen similar problems with other QT applications on Windows, but I am not really sure. Daniel
Re: LyX slow in Windows XP
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> This looks highly suspicious and could be the reason why Abdelrazak> the csrss.exe program is taking all the cpu. Abdelrazak> Any windows expert around? Angus? Andre? Joost? There is some documentation here: http://www.microsoft.com/whdc/driver/perform/drvperf.mspx For a concrete example, look here: http://blogs.msdn.com/adioltean/archive/2004/12/21/329321.aspx JMarc
Re: LyX slow in Windows XP
Abdelrazak Younes wrote: Abdelrazak Younes wrote: Michael Wojcik wrote: One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.) Hello Michael, I've downloaded this kernrate program but it looks awfully complicated and I don't have much time right now to learn it. If you know how to use that I could send you a LyX 1.5 package with full debug symbols if you would like to help. I managed to have this report on a lyx-1.5 with full debug, someone understand something about it? Results for User Mode Process LYX-QT4.EXE (PID = 3344) User Time = 15.07% of the Elapsed Time Kernel Time = 11.18% of the Elapsed Time Total Avg. Rate Page Faults , 5692, 95/sec. This looks highly suspicious and could be the reason why the csrss.exe program is taking all the cpu. Any windows expert around? Angus? Andre? Joost? Abdel.
Re: LyX slow in Windows XP
Abdelrazak Younes wrote: Michael Wojcik wrote: One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.) Hello Michael, I've downloaded this kernrate program but it looks awfully complicated and I don't have much time right now to learn it. If you know how to use that I could send you a LyX 1.5 package with full debug symbols if you would like to help. I managed to have this report on a lyx-1.5 with full debug, someone understand something about it? Abdel. PID = 3344: Source=, Time, Tried Using Kernrate Default Rate of 25000 events/hit, Actual Rate= 19531 events /hit /==\ < KERNRATE LOG > \==/ Date: 2006/10/17 Time: 11:12:59 Machine Name: YNS-ML Number of Processors: 1 PROCESSOR_ARCHITECTURE: x86 PROCESSOR_LEVEL: 15 PROCESSOR_REVISION: 0204 Physical Memory: 1024 MB Pagefile Total: 2462 MB Virtual Total: 2047 MB PageFile1: \??\D:\pagefile.sys, 1536MB OS Version: 5.1 Build 2600 Service-Pack: 2.0 WinDir: C:\WINDOWS Kernrate User-Specified Command Line: Kernrate_i386_XP.exe -w 10 -s 60 -p 3344 Waiting for 10 seconds before starting to collect profile data Starting to collect profile data Will collect profile data for 60 seconds ===> Finished Collecting Data, Starting to Process Results Overall Summary:-- P0 K 0:00:47.708 (79.5%) U 0:00:08.672 (14.5%) I 0:00:03.625 ( 6.0%) DPC 0:00:00.030 ( 0.1%) Interrupt 0:00:00.360 ( 0.6%) Interrupts= 40290, Interrupt Rate= 671/sec. Total Profile Time = 60006 msec BytesStart BytesStop BytesDiff. Available Physical Memory , 431489024, 431022080, -466 944 Available Pagefile(s) , 2056548352, 2055983104, -565 248 Available Virtual , 2131832832, 2131832832, 0 Available Extended Virtual , 0, 0, 0 Total Avg. Rate Context Switches ,37200, 620/sec. System Calls , 1312760, 21877/sec. Page Faults , 8733, 146/sec. I/O Read Operations , 963, 16/sec. I/O Write Operations , 220, 4/sec. I/O Other Operations , 2978, 50/sec. I/O Read Bytes ,28012, 29/ I/O I/O Write Bytes ,47852, 218/ I/O I/O Other Bytes , 337658, 113/ I/O Results for User Mode Process LYX-QT4.EXE (PID = 3344) User Time = 15.07% of the Elapsed Time Kernel Time = 11.18% of the Elapsed Time Total Avg. Rate Page Faults , 5692, 95/sec. I/O Read Operations ,0, 0/sec. I/O Write Operations ,0, 0/sec. I/O Other Operations ,6, 0/sec. I/O Read Bytes ,0, 0/ I/O I/O Write Bytes ,0, 0/ I/O I/O Other Bytes , 40, 7/ I/O Start-Count Stop-Count Diff. Threads, 5, 5, 0 Handles, 133, 133, 0 Working Set Bytes ,17555456,17698816, 143360 Virtual Size Bytes , 114094080, 114089984, -4096 Paged Pool Bytes , 52596, 52596, 0 Non Paged Pool Bytes, 4520,4520, 0 Pagefile Bytes ,10416128,10506240, 90112 Private Pages Bytes,10416128,10506240, 90112 -- OutputResults: ProcessModuleCount (Including Managed-Code JITs) = 47 Percentage in the following table is based on the Total Hits for this Process Time 4308 hits, 19531 events per hit ModuleHits msec %Total Events/Sec QtGui4 954 6000622 % 310511 lyx-qt4 917 6000621 % 298468 ntdll 788 6000618 % 256481 QtCore4 713 6000616 % 232070 MSVCR80 458 6000610 % 149071 GDI32 258 60006 5 % 83974 MSVCP80 174 60006 4 % 56634 kernel32 25 60006 0 %8137
Re: LyX slow in Windows XP
Michael Wojcik wrote: One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.) Hello Michael, I've downloaded this kernrate program but it looks awfully complicated and I don't have much time right now to learn it. If you know how to use that I could send you a LyX 1.5 package with full debug symbols if you would like to help. Abdel.
Re: LyX slow in Windows XP
Michael Wojcik wrote: Paul A. Rubin wrote: AFAIK, csrss manages application access to the graphics subsystem, so I suspect that every time the GUI writes to the screen, csrss is involved. [This is a bit late, but it may be of use to other people who run into this.] csrss is the "Client/Server Runtime System Service". It's the usermode part of the Win32 component of modern MS Windows versions. It handles things like the userspace side of thread creation and deletion, and console-mode I/O. (So, for example, if LyX were running with debug enabled, the debug lines being written to the LyX console window might cause a noticeable jump in csrss load. But I haven't tested that.) I don't know offhand of anything it does with graphical rendering tasks, but that doesn't mean it doesn't have its hooks in there, too. Also, some malware - eg some Nimda variants - which drop bogus csrss.exe executables on the machine, so in some cases a busy csrss is actually a trojan. Since you've confirmed the OP's problem on your own system, though, that's not the issue here. It's eating way too many cycles, though, and for that matter LyX seems to be eating more than I would expect. People have reported all sorts of triggers for excessive CPU consumption in csrss: problems with user profiles, stopping the Windows Messenger service, changing power management settings, bad interaction between ProcessExplorer (which starts threads in other processes) and cygwin, a bad TweakUI setting... Sometimes it's due to poor application coding (I saw one report of a console app that busy-waited on the kbhit() system call, which goes through csrss). Sometimes it's due to bugs in the OS, as with the Messenger issue. Because csrss is used for several common tasks, it's hard to guess just what might be causing the problem. One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.) Michael, Thanks, that's very informative. I think I've seen some reports of slow screen performance on Linux systems, but since I'm limited to Windows I didn't pay them much attention. It's possible that's a related problem, in which case hopefully the developers will lick it soon. If this really is Windows only, hopefully what you posted here will help them track down the bug. (Like you I'm not set up to build LyX, and I swore off C++ a while back on the advice of my psychoanalyst.) /Paul
Re: LyX slow in Windows XP
Paul A. Rubin wrote: AFAIK, csrss manages application access to the graphics subsystem, so I suspect that every time the GUI writes to the screen, csrss is involved. [This is a bit late, but it may be of use to other people who run into this.] csrss is the "Client/Server Runtime System Service". It's the usermode part of the Win32 component of modern MS Windows versions. It handles things like the userspace side of thread creation and deletion, and console-mode I/O. (So, for example, if LyX were running with debug enabled, the debug lines being written to the LyX console window might cause a noticeable jump in csrss load. But I haven't tested that.) I don't know offhand of anything it does with graphical rendering tasks, but that doesn't mean it doesn't have its hooks in there, too. Also, some malware - eg some Nimda variants - which drop bogus csrss.exe executables on the machine, so in some cases a busy csrss is actually a trojan. Since you've confirmed the OP's problem on your own system, though, that's not the issue here. It's eating way too many cycles, though, and for that matter LyX seems to be eating more than I would expect. People have reported all sorts of triggers for excessive CPU consumption in csrss: problems with user profiles, stopping the Windows Messenger service, changing power management settings, bad interaction between ProcessExplorer (which starts threads in other processes) and cygwin, a bad TweakUI setting... Sometimes it's due to poor application coding (I saw one report of a console app that busy-waited on the kbhit() system call, which goes through csrss). Sometimes it's due to bugs in the OS, as with the Messenger issue. Because csrss is used for several common tasks, it's hard to guess just what might be causing the problem. One way to track the problem down would be to build LyX with symbols and profile it using kernrate, the free Microsoft sampling profiler, to find out where the hotspots are. Unfortunately I'm not set up to build LyX, and I don't have time right now to pull the sources and do that. (I'm not sure I have the disk space required, for that matter.) -- Michael Wojcik
Re: LyX slow in Windows XP
Jean-Marc Lasgouttes wrote: "Paul" == Paul A Rubin <[EMAIL PROTECTED]> writes: Paul> I wonder if maybe it's a font problem (??). Through LyX 1.4.1, Paul> LyX relied on your having the math screen fonts installed in Paul> Windows. Starting with 1.4.2, it ships with the necessary fonts, Paul> although the fonts that come with LyX are a trifle funky Paul> (meaning they display incorrect glyphs in some cases). Could the fact that fonts are installed both at global and local scope make a difference, for example? This is indeed a valid question. No, I think that may be a false trail. I downloaded Ken's attachment and opened it in LyX 1.4.3 on my laptop (on which I removed the duplicate fonts and reinstalled the bakoma4lyx fonts). The response to scrolling and typing are both quite sluggish, and I'm seeing the same phenomenon that Ken saw (csrss.exe chewing inordinate numbers of CPU cycles). I guess I've been spared this in the past because I don't use long, gory, multiline equations very often (and this certainly won't create an incentive to do so in the future). /Paul
Re: LyX slow in Windows XP
> "Paul" == Paul A Rubin <[EMAIL PROTECTED]> writes: Paul> I wonder if maybe it's a font problem (??). Through LyX 1.4.1, Paul> LyX relied on your having the math screen fonts installed in Paul> Windows. Starting with 1.4.2, it ships with the necessary fonts, Paul> although the fonts that come with LyX are a trifle funky Paul> (meaning they display incorrect glyphs in some cases). Could the fact that fonts are installed both at global and local scope make a difference, for example? This is indeed a valid question. JMarc
Re: LyX slow in Windows XP
Georg, I created bug report 2900 with an attachement: http://bugzilla.lyx.org/show_bug.cgi?id=2900 Ken On 10/11/06, Georg Baum <[EMAIL PROTECTED]> wrote: Am Mittwoch, 11. Oktober 2006 19:16 schrieb Paul A. Rubin: > This is a bit of a grope in the dark, but like J-Marc I'm hard pressed > to see why your machine would be spinning its wheels in csrss.exe when > there are math insets lying around (and not with IP on), unless it's > something about the fonts in the math insets. The fonts could be innocent, it could also have something to do with the way math insets are drawn and/or metrics calculation, since with instant preview on there is only the preview to be drawn. Ken, would it be possible to create a test document that shows the slowness and post a bug report at http://bugzilla.lyx.org ? Then we could investigate. Georg
Re: LyX slow in Windows XP
Am Mittwoch, 11. Oktober 2006 19:16 schrieb Paul A. Rubin: > This is a bit of a grope in the dark, but like J-Marc I'm hard pressed > to see why your machine would be spinning its wheels in csrss.exe when > there are math insets lying around (and not with IP on), unless it's > something about the fonts in the math insets. The fonts could be innocent, it could also have something to do with the way math insets are drawn and/or metrics calculation, since with instant preview on there is only the preview to be drawn. Ken, would it be possible to create a test document that shows the slowness and post a bug report at http://bugzilla.lyx.org ? Then we could investigate. Georg
Re: LyX slow in Windows XP
kmailuk wrote: Hey! With "instant preview" turned ON there is a noticeable performance improvement (i.e. speed is not a problem any more). Why would that make things run faster? (I prefer the way LyX looked with instant preview off but I can't complain). I wonder if maybe it's a font problem (??). Through LyX 1.4.1, LyX relied on your having the math screen fonts installed in Windows. Starting with 1.4.2, it ships with the necessary fonts, although the fonts that come with LyX are a trifle funky (meaning they display incorrect glyphs in some cases). If you're into experimentation, you might try the following. 1. Locate the \Resources\fonts folder and rename it (for instance, to "fonts$") so LyX won't find it. 2. Using Control Panel->Fonts, delete any installed fonts with names matching the ones in the Resources\fonts directory. 3. Download the bakoma4lyx fonts from ftp://ftp.lyx.org/pub/lyx/contrib/BaKoMa4LyX-1.1.zip and unzip the archive somewhere (desktop, temp directory, ...). Then use Control Panel->Fonts to install all the unzipped fonts (after which you can delete the unzipped files and the zip archive). 4. If you have used LyX since your last boot, reboot the system (so that it forgets the old fonts if it has them in memory). 5. Crank up LyX (with instant preview off) and see if the speed problem is fixed. This is a bit of a grope in the dark, but like J-Marc I'm hard pressed to see why your machine would be spinning its wheels in csrss.exe when there are math insets lying around (and not with IP on), unless it's something about the fonts in the math insets. /Paul
Re: LyX slow in Windows XP
> "kmailuk" == kmailuk <[EMAIL PROTECTED]> writes: kmailuk> Hey! With "instant preview" turned ON there is a noticeable kmailuk> performance improvement (i.e. speed is not a problem any kmailuk> more). Why would that make things run faster? (I prefer the kmailuk> way LyX looked with instant preview off but I can't kmailuk> complain). It seems that math equation display is really slow for some reason, but I cannot guess why. kmailuk> The Nvidia driver version is 6.14.10.6610. If I am not mistaken, this is from 2004, but it probably does not make a big difference (unless there is a specific qt problem). JMarc
Re: LyX slow in Windows XP
Hey! With "instant preview" turned ON there is a noticeable performance improvement (i.e. speed is not a problem any more). Why would that make things run faster? (I prefer the way LyX looked with instant preview off but I can't complain). The Nvidia driver version is 6.14.10.6610. Thanks so much! Ken On 10/11/06, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: > "kmailuk" == kmailuk <[EMAIL PROTECTED]> writes: kmailuk> JMarc, Thanks for your reply. I don't think I am using any kmailuk> math macros... I am simply typing my math equations in. But kmailuk> there are several lines of equations in each math inset and kmailuk> there are lots of insets. I am not sure what "math preview" kmailuk> is... I'll google it and try enabling/disabling it. (I have kmailuk> instant preview set to off). Just set "instant preview" to 'On'. kmailuk> I am using a Dell Inspiron 5150. It has an Nvidia graphics kmailuk> card with 32Mb or memory. I keep the machine updated with kmailuk> Windows update so I think it should be running the latest kmailuk> drivers. Do you know what is the drivers version you have? JMarc
Re: LyX slow in Windows XP
> "kmailuk" == kmailuk <[EMAIL PROTECTED]> writes: kmailuk> JMarc, Thanks for your reply. I don't think I am using any kmailuk> math macros... I am simply typing my math equations in. But kmailuk> there are several lines of equations in each math inset and kmailuk> there are lots of insets. I am not sure what "math preview" kmailuk> is... I'll google it and try enabling/disabling it. (I have kmailuk> instant preview set to off). Just set "instant preview" to 'On'. kmailuk> I am using a Dell Inspiron 5150. It has an Nvidia graphics kmailuk> card with 32Mb or memory. I keep the machine updated with kmailuk> Windows update so I think it should be running the latest kmailuk> drivers. Do you know what is the drivers version you have? JMarc
Re: LyX slow in Windows XP
JMarc, Thanks for your reply. I don't think I am using any math macros... I am simply typing my math equations in. But there are several lines of equations in each math inset and there are lots of insets. I am not sure what "math preview" is... I'll google it and try enabling/disabling it. (I have instant preview set to off). I am using a Dell Inspiron 5150. It has an Nvidia graphics card with 32Mb or memory. I keep the machine updated with Windows update so I think it should be running the latest drivers. Ken On 10/11/06, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote: > "kmailuk" == kmailuk <[EMAIL PROTECTED]> writes: kmailuk> Sven, I opened my LyX docuement and closed all the floating kmailuk> tables and charts but I am still having a problem with the kmailuk> speed of LyX. When I add text to the start or end of the kmailuk> document (where there are few/no math equations) the speed is kmailuk> fine. But when I try to add text in areas where there are big kmailuk> chunks of math then I have the speed problem with csrss.exe kmailuk> and the letters taking several moments to appear in the kmailuk> document. So unfortunately that did not seem to do the trick kmailuk> for me. Ken Do you use math macros? Does the speed problem go away when using math preview? It may be that the math insets exercise some painting operations that are expensive on your system. What is you graphics card? Do you have the latest drivers? JMarc
Re: LyX slow in Windows XP
> "kmailuk" == kmailuk <[EMAIL PROTECTED]> writes: kmailuk> Sven, I opened my LyX docuement and closed all the floating kmailuk> tables and charts but I am still having a problem with the kmailuk> speed of LyX. When I add text to the start or end of the kmailuk> document (where there are few/no math equations) the speed is kmailuk> fine. But when I try to add text in areas where there are big kmailuk> chunks of math then I have the speed problem with csrss.exe kmailuk> and the letters taking several moments to appear in the kmailuk> document. So unfortunately that did not seem to do the trick kmailuk> for me. Ken Do you use math macros? Does the speed problem go away when using math preview? It may be that the math insets exercise some painting operations that are expensive on your system. What is you graphics card? Do you have the latest drivers? JMarc
Re: LyX slow in Windows XP
Ah. I think it was lyx-143-3.exe from http://wiki.lyx.org/Windows/Windows. Ken On 10/10/06, Lorenzo Paulatto <[EMAIL PROTECTED]> wrote: kmailuk ha scritto: > Paul, > I am using LyX 1.4.3. I am not sure how to tell which installer I used. > Ken You could just tell were did you downloaded it and the installer's file name -- Lorenzo `paulatz' Paulatto Trieste ``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio avesse fatto l'universo più proporzionato alla piccola capacità del lor discorso.'' --Galileo Galilei (Opere VII)
Re: LyX slow in Windows XP
kmailuk ha scritto: > Paul, > I am using LyX 1.4.3. I am not sure how to tell which installer I used. > Ken You could just tell were did you downloaded it and the installer's file name -- Lorenzo `paulatz' Paulatto Trieste ``Grandissima mi par l'inezia di coloro che vorrebbero che Iddio avesse fatto l'universo più proporzionato alla piccola capacità del lor discorso.'' --Galileo Galilei (Opere VII)
Re: LyX slow in Windows XP
Paul, I am using LyX 1.4.3. I am not sure how to tell which installer I used. Ken On 10/9/06, Paul A. Rubin <[EMAIL PROTECTED]> wrote: kmailuk wrote: > Paul, > Thanks for your reply. I already had instant preview turned off. I tried > turning off virus scan but I still had the same problem with LyX displaying > what I type very slowly. When I looked at the Task Manager after typing a > sentence (which would take several seconds to finally appear) it shows > csrss.exe using about 65-75% oc the CPU cycles and lyx using 25-35%. I > looked up csrss.exe and it has something to do with the program windows > uses > to display stuff on screen. I'll continue to google for more information > and try the debug mode next. > Thanks again, > Ken > AFAIK, csrss manages application access to the graphics subsystem, so I suspect that every time the GUI writes to the screen, csrss is involved. It's eating way too many cycles, though, and for that matter LyX seems to be eating more than I would expect. I just tried on my office PC (my laptop is not at hand just now). During loading of a document, csrss ate CPU cycles in the single digit to maybe 15% range. Once the document was open, typing didn't involve csrss enough to register. (My office PC is a dual core screamer, though, so that might be a factor.) Which version of LyX are you using, by the way (and which installer, although I doubt that matters)? /Paul
Re: LyX slow in Windows XP
Sven, I opened my LyX docuement and closed all the floating tables and charts but I am still having a problem with the speed of LyX. When I add text to the start or end of the document (where there are few/no math equations) the speed is fine. But when I try to add text in areas where there are big chunks of math then I have the speed problem with csrss.exe and the letters taking several moments to appear in the document. So unfortunately that did not seem to do the trick for me. Ken On 10/9/06, Sven Schreiber <[EMAIL PROTECTED]> wrote: kmailuk schrieb: > Paul, > Thanks for your reply. I already had instant preview turned off. I tried > turning off virus scan but I still had the same problem with LyX displaying > what I type very slowly. When I looked at the Task Manager after typing a > sentence (which would take several seconds to finally appear) it shows > csrss.exe using about 65-75% oc the CPU cycles and lyx using 25-35%. I > looked up csrss.exe and it has something to do with the program windows > uses > to display stuff on screen. I'll continue to google for more information > and try the debug mode next. > Thanks again, > Ken > Hi, I reported a similar effect with an open table "inset" (in lyx lingo). Equations do not seem to have that much of an effect in my personal experience, but hey, maybe I'm just not using enough of them ;-) So do you have open float insets (figure, table) in your document? -sven
Re: LyX slow in Windows XP
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: Enrico> This is funny... actually it is faster for me when I turn on Enrico> instant preview. See Enrico> http://bugzilla.lyx.org/show_bug.cgi?id=2452 Enrico> I find that when there are *lots* of equations and/or macros Enrico> LyX becomes unusable. Macros are a real problem when the document gets longer because the macro table is rebuilt at each update. JMarc
Re: LyX slow in Windows XP
Paul A. Rubin <[EMAIL PROTECTED]> writes: > > kmailuk wrote: > > Hi. This is my first message to a mailing list (I hope I am doing this > > right and emailing a friendly audience). > > > > I recently started using LyX and am finding that LyX can be very slow > > when I > > have a moderate sized document (eight pages or so) with lots and lots of > > mathematics equations. I am using Windows XP on a 3ghz laptop with more > > than a gig of ram so I am not sure why it is so slow. Whenever I type a > > letter it can take more than a second (or seconds) to appear in the > > document. Has anyone else experienced this issue? Any known solutions? > > > > Thanks, > > Ken > > > > It works fine for me (no discernible delays) under XP on a 1.5 GHz > laptop with 768MB of RAM (and that's with instant preview on ... it's > faster without instant preview, of course). Based on a sample of size > two, we can conclude that your laptop has too much power for LyX. This is funny... actually it is faster for me when I turn on instant preview. See http://bugzilla.lyx.org/show_bug.cgi?id=2452 I find that when there are *lots* of equations and/or macros LyX becomes unusable. -- Enrico
Re: LyX slow in Windows XP
kmailuk wrote: Paul, Thanks for your reply. I already had instant preview turned off. I tried turning off virus scan but I still had the same problem with LyX displaying what I type very slowly. When I looked at the Task Manager after typing a sentence (which would take several seconds to finally appear) it shows csrss.exe using about 65-75% oc the CPU cycles and lyx using 25-35%. I looked up csrss.exe and it has something to do with the program windows uses to display stuff on screen. I'll continue to google for more information and try the debug mode next. Thanks again, Ken AFAIK, csrss manages application access to the graphics subsystem, so I suspect that every time the GUI writes to the screen, csrss is involved. It's eating way too many cycles, though, and for that matter LyX seems to be eating more than I would expect. I just tried on my office PC (my laptop is not at hand just now). During loading of a document, csrss ate CPU cycles in the single digit to maybe 15% range. Once the document was open, typing didn't involve csrss enough to register. (My office PC is a dual core screamer, though, so that might be a factor.) Which version of LyX are you using, by the way (and which installer, although I doubt that matters)? /Paul
Re: LyX slow in Windows XP
kmailuk schrieb: > Paul, > Thanks for your reply. I already had instant preview turned off. I tried > turning off virus scan but I still had the same problem with LyX displaying > what I type very slowly. When I looked at the Task Manager after typing a > sentence (which would take several seconds to finally appear) it shows > csrss.exe using about 65-75% oc the CPU cycles and lyx using 25-35%. I > looked up csrss.exe and it has something to do with the program windows > uses > to display stuff on screen. I'll continue to google for more information > and try the debug mode next. > Thanks again, > Ken > Hi, I reported a similar effect with an open table "inset" (in lyx lingo). Equations do not seem to have that much of an effect in my personal experience, but hey, maybe I'm just not using enough of them ;-) So do you have open float insets (figure, table) in your document? -sven
Re: LyX slow in Windows XP
Paul, Thanks for your reply. I already had instant preview turned off. I tried turning off virus scan but I still had the same problem with LyX displaying what I type very slowly. When I looked at the Task Manager after typing a sentence (which would take several seconds to finally appear) it shows csrss.exe using about 65-75% oc the CPU cycles and lyx using 25-35%. I looked up csrss.exe and it has something to do with the program windows uses to display stuff on screen. I'll continue to google for more information and try the debug mode next. Thanks again, Ken
Re: LyX slow in Windows XP
kmailuk wrote: Hi. This is my first message to a mailing list (I hope I am doing this right and emailing a friendly audience). I recently started using LyX and am finding that LyX can be very slow when I have a moderate sized document (eight pages or so) with lots and lots of mathematics equations. I am using Windows XP on a 3ghz laptop with more than a gig of ram so I am not sure why it is so slow. Whenever I type a letter it can take more than a second (or seconds) to appear in the document. Has anyone else experienced this issue? Any known solutions? Thanks, Ken It works fine for me (no discernible delays) under XP on a 1.5 GHz laptop with 768MB of RAM (and that's with instant preview on ... it's faster without instant preview, of course). Based on a sample of size two, we can conclude that your laptop has too much power for LyX. :-) More seriously, if you are using instant preview, you might try turning it off. If that cures the problem, I would take a look at the LaTeX (MikTeX?) installation, since IP does lots of little latex runs in the background. A couple of grope-in-the-dark suggestions follow. First, you might try opening the task manager (or something better, such as Process Explorer, if you have it) and keeping an eye on it while you type in LyX. It might point to something else (firewall, antivirus program, ...) eating CPU cycles while you're using LyX. The other possibility would be to run LyX in debug mode and see if the (torrent of) messages tell you anything about what's going on. You can start LyX in debug mode from a DOS prompt (in the LyX bin directory). Start with lyx -dbg which will give you a list of all the debug options. The omnibus choice is lyx -dbg any, but that will give you a nonstop flood of debug output. You might want to start with a more selective option. HTH, /Paul