Results 1 to 12 of 12

Thread: QT speed problems on s3c2440

  1. #1
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QT speed problems on s3c2440

    Hi there,

    Im currently using QT 4.6.3 on a s3c2440 processor (Arm920T). I have serious speed problems while executing some demo apps.

    As example i tried the Embedded Widget catalog.
    The main speed problem is happening, when i move the mouse cursor on a Button, which changes color when the mouse cursor points there. It takes like 1-2 seconds until something happens again.
    If i change the Page from Buttons to Sliders, it also takes about 2-3 seconds until the other Screen is shown.


    My Setup:

    - QT 4.6.3 ( im using 4.6.3 because of issues with 4.7 http://www.qtcentre.org/threads/36452-Arm9-amp-qt4.7 )

    - s3c2440 on 400MHz Clock with 62 MB SDRAM and 62 MB Nand Flash

    - i compiled QT static ( it improved the speed a lot, but still not enough )

    - im using linux-arm-gcc Version 3.4.1 and compiled QT with optimization -o2


    Am i missing something important? Or what could be the main problem of my speed issues?

    Any help appreciated!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT speed problems on s3c2440

    Quote Originally Posted by Ovrflw View Post
    Or what could be the main problem of my speed issues?
    The problem may be the code you have written.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT speed problems on s3c2440

    well, i have not written any code at all yet....

    so do you think the example and demo applications of QT are badly written?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT speed problems on s3c2440

    Quote Originally Posted by Ovrflw View Post
    well, i have not written any code at all yet....
    So the code you have not written. The patches you have not applied. Or a myriad other possibilities. You didn't give us any information so how can we help you? Provide some kind of profiling information or any other kind of information about what happens during the execution of the program. What's the system load? What other processes are running? How much free memory is available? If you have 62MB of RAM then it's likely you're simply running out of memory.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT speed problems on s3c2440

    I run top during the execution of the catalog example. Looks like my CPU load is going to max pretty fast, if i start clicking some buttons and moving the mouse cursor..

    Qt Code:
    1. Mem: 37928K used, 23696K free, 0K shrd, 2568K buff, 22308K cached
    2. Load average: 0.37 0.23 0.10 (Status: S=sleeping R=running, W=waiting)
    3. PID USER STATUS RSS PPID %CPU %MEM COMMAND
    4. 2393 root R 12540 933 98.2 20.2 catalog
    5. 2428 root R 392 933 1.7 0.6 top
    6. 933 root S 1348 1 0.0 2.1 bash
    7. 984 root S < 648 1 0.0 1.0 inetd
    8. 986 root S < 396 1 0.0 0.6 boa
    9. 1 root S 308 0 0.0 0.4 init
    10. 816 root SW< 0 2 0.0 0.0 mtdblockd
    11. 5 root SW< 0 2 0.0 0.0 khelper
    12. 101 root SW< 0 2 0.0 0.0 khubd
    13. 4 root SW< 0 2 0.0 0.0 events/0
    14. 2 root SW< 0 0 0.0 0.0 kthreadd
    15. 3 root SW< 0 2 0.0 0.0 ksoftirqd/0
    16. 89 root SW< 0 2 0.0 0.0 kblockd/0
    17. 95 root SW< 0 2 0.0 0.0 ksuspend_usbd
    18. 104 root SW< 0 2 0.0 0.0 kseriod
    19. 126 root SW 0 2 0.0 0.0 pdflush
    20. 127 root SW 0 2 0.0 0.0 pdflush
    21. 128 root SW< 0 2 0.0 0.0 kswapd0
    22. 129 root SW< 0 2 0.0 0.0 aio/0
    23. 720 root SW< 0 2 0.0 0.0 kapmd
    24. 810 root SW< 0 2 0.0 0.0 scsi_tgtd/0
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT speed problems on s3c2440

    Profile some application and see where most time is spent. It's likely something related to an input device configuration.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Nov 2010
    Posts
    16
    Thanked 1 Time in 1 Post

    Default Re: QT speed problems on s3c2440

    Quote Originally Posted by Ovrflw View Post
    Hi there,

    Im currently using QT 4.6.3 on a s3c2440 processor (Arm920T). I have serious speed problems while executing some demo apps.
    I guess that I observed this initially. However, I switch to ubifs and the Qt apps are responsive. Is the speed issue persistent or only on startup? May sure your tmp, etc are tmpfs based. You can check what files Qt is using with '/proc/pid/fd'. Take a look at what type of mount points you have. Also, at some point /tmp had run out of space. I think that a 'font cache' is stored there. You will probably run slower with '-qws' if the font cache is in-active. If you try to run Qt in client mode, the startup will abort if it can not access the font cache. Programs run with '-qws' will continue without any warning, afair.

    Edit: definitely could be a device issue as well. Easier to check disk structure though.
    Last edited by ardvark; 15th December 2010 at 18:29. Reason: confirm device issues.

  8. #8
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT speed problems on s3c2440

    Thanks for the replies. I found some minutes time today.

    So i checked the mounting:

    Qt Code:
    1. # cat /proc/mounts
    2.  
    3. rootfs / rootfs rw 0 0
    4. /dev/root / cramfs ro 0 0
    5. proc /proc proc rw 0 0
    6. none /sys sysfs rw 0 0
    7. ramfs /var ramfs rw 0 0
    8. none /dev tmpfs rw,mode=755 0 0
    9. /dev/mtdblock3 /yaffs yaffs rw 0 0
    10. /dev/mtdblock4 /yaffs/home/ext yaffs rw 0 0
    11.  
    12. # df
    13. Filesystem 1k-blocks Used Available Use% Mounted on
    14. /dev/mtdblock2 7380 7380 0 100% /
    15. none 30812 0 30812 0% /dev
    16. /dev/mtdblock3 46080 35820 10260 78% /yaffs
    17. /dev/mtdblock4 10240 2128 8112 21% /yaffs/home/ext
    To copy to clipboard, switch view to plain text mode 

    My /proc /var /sys and /dev are linked to the RAM.
    My /tmp and /etc are symbolic links to /var/tmp and /yaffs/etc.

    Then change /etc /tmp to tmpfs, but it had no effect on the issue.

    Qt Code:
    1. /bin/mount -o mode=0755 -t tmpfs tmpfs /tmp
    2. /bin/mount -o mode=0755 -t tmpfs tmpfs /etc
    To copy to clipboard, switch view to plain text mode 

    ill try some more suggestions tomorrow.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT speed problems on s3c2440

    What does 'free' return?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT speed problems on s3c2440

    Quote Originally Posted by wysota View Post
    What does 'free' return?
    Qt Code:
    1. free
    2. total used free shared buffers
    3. Mem: 61624 33276 28348 0 2568
    4. Swap: 0 0 0
    5. Total: 61624 33276 28348
    To copy to clipboard, switch view to plain text mode 

  11. #11
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT speed problems on s3c2440

    Is it while the application is running?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Nov 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QT speed problems on s3c2440

    Quote Originally Posted by wysota View Post
    Is it while the application is running?
    Yes it is.

    Heres the proc/meminfo

    Qt Code:
    1. # cat proc/meminfo
    2. MemTotal: 61624 kB
    3. MemFree: 28324 kB
    4. Buffers: 2568 kB
    5. Cached: 17004 kB
    6. SwapCached: 0 kB
    7. Active: 9296 kB
    8. Inactive: 16852 kB
    9. Inactive: 16852 kB
    10. Inactive(anon): 0 kB
    11. Active(file): 2716 kB
    12. Inactive(file): 16852 kB
    13. Unevictable: 0 kB
    14. Mlocked: 0 kB
    15. SwapTotal: 0 kB
    16. SwapFree: 0 kB
    17. Dirty: 0 kB
    18. Writeback: 0 kB
    19. AnonPages: 6608 kB
    20. Mapped: 8528 kB
    21. Slab: 5516 kB
    22. SReclaimable: 2672 kB
    23. SUnreclaim: 2844 kB
    24. PageTables: 128 kB
    25. NFS_Unstable: 0 kB
    26. Bounce: 0 kB
    27. WritebackTmp: 0 kB
    28. CommitLimit: 30812 kB
    29. Committed_AS: 16792 kB
    30. VmallocTotal: 450560 kB
    31. VmallocUsed: 4184 kB
    32. VmallocChunk: 441340 kB
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Qt-4.4.3 excecutable on S3C2440 gives segmentation fault
    By soumya in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 29th March 2011, 14:49
  2. Qt Embedded application is very slow in S3C2440 SOC with 64 MB Ram
    By Ratheendrans in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 31st August 2010, 09:17
  3. Qt/Embedded-4.4.3 on S3C2440(ARM9)
    By grsandeep85 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 12th January 2010, 05:53
  4. Qt/Embedded-4.4.3 on ARM9(S3C2440)
    By grsandeep85 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 17th December 2009, 14:08
  5. the problem of qtopia4.3.2 on s3c2440
    By drh00 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th April 2009, 06:01

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.