hi all some times (only after switch power-on), there is rebooting problem (only one time) during starting up qt application on mini2440 with linux-2.6.32.2 I don't use watchdog. If I close and run qt application, I will never see rebooting. It occurs only after first run (after power-on switch of mini2440). It seems that some chipset needs software rebooting after power-up during first run of qt application. qDebug showes that It does not occur in a specific code of qt application. nor see and kernel error on com1 debug texts. I will be appreciated with your comments and suggestions. blue
rebooting during starting up qt application
thanks the size of static compiled qt app is 14MB the app deifnes less than 13MB data array in RAM when running linux-2.6.32.2 the size of RAM of mini2440 is 64 MB. how can I test the idea of "Out of RAM memory"?
I recompiled eveything with -shared configuration. Now qt app size is about 850 Kb with more than 15MB shared dll files. The problem still exists. Is it related to a linux OS bug?
There is no difference in RAM usage when I compile it with qt4.6.3 or qt4.8.0 Both qt versions have configured and cross compiled (static) with only necessary modules (I can not disable QNetwork module) Extra widgets has removed from tabs/form. ps and top commands show that my qt application use about 50MB RAM. The problem still exists. Applications of Qt developers, here, are consume about 50MB RAM without rebooting problem? thanks for your time
Search the web for 'overcommitment'. Maybe you can play with its setting and see what happens ('overcommit_memory' and 'overcommit_ratio' entries in '/proc/sys/vm/') Read the Documentation/vm/overcommit-accounting for more information about their values.
I did the following change, but the problem till exists. in mmap.c int sysctl_overcommit_memory = OVERCOMMIT_NEVER; /* heuristic overcommit */ //todo: it was OVERCOMMIT_GUESS int sysctl_overcommit_ratio = 99; /* default is 50% */
Hi all, in addition, Kernel print the information: "s3c2410-wdt s3c2410-wdt: Unexpected close, not stopping watchdog".
I did the following change, but the problem till exists. in mmap.c & nommu.c int sysctl_overcommit_memory = OVERCOMMIT_NEVER; /* heuristic overcommit */ //todo: it was OVERCOMMIT_GUESS int sysctl_overcommit_ratio = 99; /* default is 50% */ I will be appreciated with any cooment & suggestion from professionals
I tried running Arora and even the demo/browser, just out of RAM (64M machine) and had to go to using an SD card and swap. Are you running Webkit?
No I only have linux and qt application on mini2440. There is sd card for data storage but does not used for swap. this is a top command view: Mem: 42248K used, 19424K free, 0K shrd, 0K buff, 18876K cached CPU: 3.7% usr 8.1% sys 0.0% nic 86.8% idle 0.0% io 1.1% irq 0.0% sirq Load average: 0.31 0.25 0.12 1/30 423 PID PPID USER STAT VSZ %MEM CPU %CPU COMMAND 339 2 root SW 0 0.0 0 7.3 [s3c2410-spi.0] 410 379 root S 48640 78.3 0 3.9 ./qt-gui -qws 422 419 root R 3392 5.4 0 0.4 top 419 418 root S 3392 5.4 0 0.0 -sh 402 1 root S 3388 5.4 0 0.0 /usr/sbin/inetd 418 402 root S 3076 4.9 0 0.0 /usr/sbin/telnetd -i 379 1 root S 3072 4.9 0 0.0 /bin/sh /etc/init.d/rcS 1 0 root S 3068 4.9 0 0.0 init 399 1 root S 3068 4.9 0 0.0 syslogd 5 2 root SW 0 0.0 0 0.0 [khelper] 4 2 root SW 0 0.0 0 0.0 [events/0] 2 0 root SW 0 0.0 0 0.0 [kthreadd] 3 2 root SW 0 0.0 0 0.0 [ksoftirqd/0] 11 2 root SW 0 0.0 0 0.0 [async/mgr] 115 2 root SW 0 0.0 0 0.0 [sync_supers] 117 2 root SW 0 0.0 0 0.0 [bdi-default] 119 2 root SW 0 0.0 0 0.0 [kblockd/0] 123 2 root SW 0 0.0 0 0.0 [kseriod] 129 2 root SW 0 0.0 0 0.0 [kmmcd] 144 2 root SW 0 0.0 0 0.0 [rpciod/0]
42248K used and 48640 (78.3%) just for ./qt-gui doesn't add up . . . well it doesn't to me. How much room did you leave for the kernel? I recall doing free before and after running Arora, seeing less than 60M and then running out of RAM. I was told "that other stuff gets dragged-in to run the application". Not a good explanation as he didn't say where it came from!
this is TOP COMMAND results ! after closing qt-gui Mem: 41712K used, 19960K free, 0K shrd, 0K buff, 21448K cached CPU: 0.1% usr 0.3% sys 0.0% nic 99.4% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.01 0.15 0.21 1/29 461 PID PPID USER STAT VSZ %MEM CPU %CPU COMMAND 461 419 root R 3392 5.4 0 0.5 top 419 418 root S 3392 5.4 0 0.0 -sh 402 1 root S 3388 5.4 0 0.0 /usr/sbin/inetd 418 402 root S 3076 4.9 0 0.0 /usr/sbin/telnetd -i 1 0 root S 3068 4.9 0 0.0 init 399 1 root S 3068 4.9 0 0.0 syslogd 440 1 root S 3068 4.9 0 0.0 init 441 1 root S 3068 4.9 0 0.0 init 442 1 root S 3068 4.9 0 0.0 init 446 1 root S 3068 4.9 0 0.0 init 339 2 root SW 0 0.0 0 0.0 [s3c2410-spi.0] 5 2 root SW 0 0.0 0 0.0 [khelper] 4 2 root SW 0 0.0 0 0.0 [events/0] 2 0 root SW 0 0.0 0 0.0 [kthreadd] 3 2 root SW 0 0.0 0 0.0 [ksoftirqd/0] 11 2 root SW 0 0.0 0 0.0 [async/mgr] 115 2 root SW 0 0.0 0 0.0 [sync_supers] 117 2 root SW 0 0.0 0 0.0 [bdi-default] 119 2 root SW 0 0.0 0 0.0 [kblockd/0] 123 2 root SW 0 0.0 0 0.0 [kseriod]
here a simple bash file used for running qt-gui. but even without bash file, the top command result for memory usage is the same as before.
this is after power on mini2440 without running qt-gui Mem: 23748K used, 37924K free, 0K shrd, 0K buff, 3648K cached CPU: 0.0% usr 0.3% sys 0.0% nic 99.6% idle 0.0% io 0.0% irq 0.0% sirq Load average: 0.04 0.01 0.00 1/29 428 PID PPID USER STAT VSZ %MEM CPU %CPU COMMAND 428 425 root R 3392 5.4 0 0.4 top 425 424 root S 3392 5.4 0 0.0 -sh 402 1 root S 3388 5.4 0 0.0 /usr/sbin/inetd 424 402 root S 3076 4.9 0 0.0 /usr/sbin/telnetd -i 1 0 root S 3068 4.9 0 0.0 init 399 1 root S 3068 4.9 0 0.0 syslogd 413 1 root S 3068 4.9 0 0.0 init 414 1 root S 3068 4.9 0 0.0 init 415 1 root S 3068 4.9 0 0.0 init 420 1 root S 3068 4.9 0 0.0 init 5 2 root SW 0 0.0 0 0.0 [khelper] 2 0 root SW 0 0.0 0 0.0 [kthreadd] 3 2 root SW 0 0.0 0 0.0 [ksoftirqd/0] 4 2 root SW 0 0.0 0 0.0 [events/0] 11 2 root SW 0 0.0 0 0.0 [async/mgr] 115 2 root SW 0 0.0 0 0.0 [sync_supers] 117 2 root SW 0 0.0 0 0.0 [bdi-default] 119 2 root SW 0 0.0 0 0.0 [kblockd/0] 123 2 root SW 0 0.0 0 0.0 [kseriod] 129 2 root SW 0 0.0 0 0.0 [kmmcd]
I realised you were using the TOP command. During the period I was trying to get Arora running on it I was told to use the free command. My debugging skills are at a very low level. So, if the top command shows all the resources that are being used and it looks like you have plenty of room left then I haven't clue why you are having a problem. When you find the answer let us know.
the result of free comand is the same as top command. As you see on top of the thread, some one notised me about "Out of RAM memory?" If you have another cooment or suggestion about rebooting problem, I will be appreciated about it.
I was going to suggest that an older version of Qt might result in a smaller application, but you might have integration problems. For example, I found that my demo/browser app got significantly bigger with 4.7.3 Another thing is to check which libraries you REALLY need for your application and if you have unwanted libs get rid of them.
As I said before: There is no difference in RAM usage when I compile it with qt4.6.3 or qt4.8.0 Both qt versions have configured and cross compiled (static) with only necessary modules (I can not disable QNetwork module)
Dear Blue, Did you find solution for this rebooting problem? I have the same problem, sometimes kernel reboots in loop for many times. The solution is plug off power and plug again... for prototypes it's works, but for product it's not a solution. When it reboots the message below appears: s3c2410-wdt s3c2410-wdt: Unexpected close, not stopping watchdog Best Regards,