View Full Version : Crashes on Hyperthreading / Multicore and 100% CPU usage
Prometheus
12-22-2007, 10:37 AM
It seems that RO runs more unstable on systems with more than one logical CPU (if you have Hyperthreading, a Multi-Core CPU or multiple CPUs). I know that from at least 4 different people.
Restricting RO to one logical CPU seems to help a lot in this case. Any ideas?
Also the in-game CPU monitor (when you press ALT + I) shows always >90% even if run on multiple CPUs. It seems that RO is running some tight loop on one thread and only does monitor this thread. Maybe this is related to the problem described above?
Even more weird, if I onfocus RO in windowed mode (e.g. I switch to the task manager), it stops consuming 100% power of the one logical CPU and my laptop fan slows down at the same time.
Why does RO use a whole CPU when focused??? Is it a input related problem?
Let aside power consumption, doesn't it also slow down the whole game?
P.S: You might also have noticed this thread in the German community:
http://regnum-forum.gamigo.de/showthread.php?t=1365
Edit: My system is a Toshiba Tecra A9 with a 2,2 GHZ Intel Core 2 Duo CPU.
Myxir
12-22-2007, 11:08 AM
Even more weird, if I onfocus RO in windowed mode (e.g. I switch to the task manager), it stops consuming 100% power of the one logical CPU and my laptop fan slows down at the same time.
Hey, I have the same problem with my Dual Core. Usually I play in full screen mode. But if I hit alt+enter to get windowed mode, it only uses around 30% of my cpu. If I get back to full screen the game uses around 70% again but it runs only at ~15 FPS, usually it should be something like 50-70.
With my Single Core CPU I did not experience that.
But to the german thread:
Da manche Ihr Hyperthreading oder einen 2.ten Prozessor nicht dauerhaft abschalten möchten, habe ich ein Programm gefunden, mit dem man Regnum dazu bringen kann, nur auf einem Prozessor zu arbeiten.
Sorry, but in my oppinion this is crap. Regnum does NOT use the second core. It only uses one. This annoys me very much because of saving energy... Both cores are running at 100% speed but they could run at ~50% if Regnum would use both cores.
One core runs at ~70-90% load and the other has just something about 2-10%.
But I mostly never suffer crashes because of this. I often relog to get my FPS back.
In my opinion this looks like a kind of memory leak.
Also the in-game CPU monitor (when you press ALT + I) shows always >90% even if run on multiple CPUs. It seems that RO is running some tight loop on one thread and only does monitor this thread. Maybe this is related to the problem described above?
It uses 100% on *one* core/CPU because RO unfortunately doesn't use more than on core (yet). This doesn't necessarily mean, that the cpu is runing on fullspeed though, because with modern cpus the speed will be adjusted automatically (and sometimes I see the speed dropping even with ro running).
On the other hand there's no reason ro *should not* use all the processing power available...
Boger
12-22-2007, 01:45 PM
It seems that RO runs more unstable on systems with more than one logical CPU (if you have Hyperthreading, a Multi-Core CPU or multiple CPUs). I know that from at least 4 different people.
Restricting RO to one logical CPU seems to help a lot in this case. Any ideas?
Also the in-game CPU monitor (when you press ALT + I) shows always >90% even if run on multiple CPUs. It seems that RO is running some tight loop on one thread and only does monitor this thread. Maybe this is related to the problem described above?
Even more weird, if I onfocus RO in windowed mode (e.g. I switch to the task manager), it stops consuming 100% power of the one logical CPU and my laptop fan slows down at the same time.
Why does RO use a whole CPU when focused??? Is it a input related problem?
Let aside power consumption, doesn't it also slow down the whole game?
P.S: You might also have noticed this thread in the German community:
http://regnum-forum.gamigo.de/showthread.php?t=1365
Edit: My system is a Toshiba Tecra A9 with a 2,2 GHZ Intel Core 2 Duo CPU.
I suffer lately many crashes too... and I have a dualcore too, updating the DC Optimizers and other stuff didnt help this time.
And ofc only RO got this stuff, other games/apps work golden
Stefan1200
12-22-2007, 02:14 PM
My clanmate got many crashes too. He has Hyperthreading.
The thread related to my clanmates problem:
http://www.regnumonline.com.ar/forum/showthread.php?t=15085
Boger
12-22-2007, 02:20 PM
well, how does the crash look like?
Its just a simple Error message without any freeze? or maybe a graphics corrutpion with a freeze and then error? some more details.
NightTwix
12-22-2007, 02:51 PM
dont confuse Hyperthreading with multi core CPUs
i read about problems with Hyperthreading before. HT is just an emulation of multiple CPUs.
Its more a marketing gag than something useful, so i suggest to disable it in the BIOS.
Real multi-core CPUs work fine afaik.
Boger
12-22-2007, 03:04 PM
Real multi-core CPUs work fine afaik.
No they dont with RO ;)
Thats mainly the cause of my crashes lately...
Prometheus
12-22-2007, 05:10 PM
Real multi-core CPUs work fine afaik.
No they don't Twix ;-). In this case the problem is not HT, but multiprocessing in general AFAIK.
@Myxir: I know that this isn't true and I haven't written the mentioned Thread ;-)
Myxir
12-22-2007, 06:10 PM
No they don't Twix ;-). In this case the problem is not HT, but multiprocessing in general AFAIK.
@Myxir: I know that this isn't true and I haven't written the mentioned Thread ;-)
I only wanted to mention it :) I'll do that in the gamigo Forum, too.
NightTwix
12-23-2007, 10:52 AM
i play on a multicore cpu all the time (Intel).
when i stared playing i barely crashed.
Then there came a long period of LOTS and LOTS of crashed. But those were gone after an update a few weeks ago.
nowadays i never crash any more (maybe once or twice a week).
The crash issues i had were IMHO caused by other reasons (bugged linuxclient, broken ressources)
I know how frustrating constand crashes are.
All i can say that nowadays the game runs really stable on my box.
Its true that the game doesnt take use of the multiple cores directly, but its the kernels job to distribute the OS ressources. The way it works right now i can easily compile stuff in the background and play regnum at the same time.
Im sure it impacts overall performance negativly if the game would span across multiple cores.
Even the 100% cpu/core usage is perfectly fine, it should be that way but its not easy to explain why.
I wonder which setups cause the problems.
There were other threads about issues with AMD multicore CPUs. Also ATI graphiccards seem to cause lots of problems. could also be a combo of things.
Or could even be good old windows that doesnt handle multicore computing properly
Myxir
12-26-2007, 11:14 AM
Oh my god. I just read this thread in the gamigo forum.
http://regnum-forum.gamigo.de/showthread.php?t=1560
Two things I wondered about.
First:
Some people report that Regnum uses 2 cores but not everytime, on quad cores it works mostly correctly. According to the posts it seems to happen to the linux client very often that it does not use the available cores. I cannot believe this. Regnum NEVER used two cores for me.
Second:
Regnum supports dual core from scratch.
I just spoke to one of our technology guys and he said that AMD dual core pcs have several compatibility issues, and that it happens with a lot of games. He also mentioned that there are several hotfixes available for windows and from AMD/Intel that can help bring more stability with games.
This issue seems to be happening more with AMD than Intel. I have a dual core in my house (Intel) and I regularly play Regnum with no problems whatsoever (I have Windows Vista). Several employees at NGD also have dual cores machines.
You can help me further by getting more precise stats about this. Which processors are they using, windows version, video board, etc.
http://regnum-forum.gamigo.de/showpost.php?p=13555&postcount=2
I wonder what he means by "supports dual core from scratch". I guess it means that Regnum won't stop working of dual core is detected.
octopus
12-26-2007, 06:13 PM
Sorry, but in my oppinion this is crap. Regnum does NOT use the second core. It only uses one. This annoys me very much because of saving energy... Both cores are running at 100% speed but they could run at ~50% if Regnum would use both cores.
One core runs at ~70-90% load and the other has just something about 2-10%.
If you are running Windows, that second CPU is there to run your viruses and spyware. If your second CPU is only running at 2-10%, just wait until you get a few more viruses, pop-ups and other malware, then your second CPU will be fully utilized.
On a more serious note, we have 5 computers that can all run Regnum. Four of them are single-core AMD systems, and on those Regnum has always been stable. On the fifth machine, an Intel dual-core system (and the fastest system we have), Regnum crashes every 5 minutes or so. I haven't tried turning off hyper-threading on it yet, but I've heard that can help. All five run Ubuntu, and all with Nvidia video cards.
theotherhiveking
12-26-2007, 07:45 PM
Regnum only uses 1 core, it was designed to use only 1 core.
making it use 2 cores would really damage performance in single core procesors.
When the game is not focused it takes less resources, this is intentionan.
Prometheus
12-26-2007, 07:57 PM
Its true that the game doesnt take use of the multiple cores directly, but its the kernels job to distribute the OS ressources. The way it works right now i can easily compile stuff in the background and play regnum at the same time.
Im sure it impacts overall performance negativly if the game would span across multiple cores.
Even the 100% cpu/core usage is perfectly fine, it should be that way but its not easy to explain why.
I wonder which setups cause the problems.
There were other threads about issues with AMD multicore CPUs. Also ATI graphiccards seem to cause lots of problems. could also be a combo of things.
Or could even be good old windows that doesnt handle multicore computing properly
I'm a software developer and I don't think that the 100% CPU usage is necessary.
I can confirm that running the game on only one of my CPU cores (intel core 2 duo) works for almost 4 hours (then my RAM is full and Windows starts swapping and the game crashes after that), while running on both the game crashes in the first 15 minutes or so. I have thourogly tested this in the last 7 days or so.
Even if the game doesn't seam to use the second core, it crashes when both are enabled and I can proof this (at least for my own system). I think that we have nailed down one problem that is pretty independed of the others.
I can't say much to the other graphics card related problems, but I definitely have a problem with multiple cores.
Prometheus
12-26-2007, 07:59 PM
Regnum only uses 1 core, it was designed to use only 1 core.
making it use 2 cores would really damage performance in single core procesors.
When the game is not focused it takes less resources, this is intentionan.
Where do you have this information from?
A well written multi-threading application will run optimally on a single and a multi-core system. I'm pretty much sure that this is true as I wrote such applications myself already ;)
theotherhiveking
12-27-2007, 03:53 PM
Where do you have this information from?
A well written multi-threading application will run optimally on a single and a multi-core system. I'm pretty much sure that this is true as I wrote such applications myself already ;)
I took the information from killeak and surak.
niclam
12-27-2007, 04:32 PM
Regnum was designed with single cores in mind. The underlying technology NGD created more than 5 years ago wasn't thought out for multi-cores.
That's why while Regnum stills works on Multi-core CPU's (the compatibility issues are yet to be analyzed), it doesn't use the full extent of it most of the time. When it does, it's because some auxiliary threads have been spawned (i.e.: resource loading).
Regards
Prometheus
12-28-2007, 03:22 PM
Regnum was designed with single cores in mind. The underlying technology NGD created more than 5 years ago wasn't thought out for multi-cores.
That's what I had expected. ;) I hope you have some time next year to bring a little bit more "threadiness" into the game.
That's why while Regnum stills works on Multi-core CPU's (the compatibility issues are yet to be analyzed), it doesn't use the full extent of it most of the time. When it does, it's because some auxiliary threads have been spawned (i.e.: resource loading).
So it may be a problem of thread synchronization? I already had the terrain loader in mind as the culprit.
The only question you didn't answer is why Regnum uses 100% CPU and I still think that the game does some kind of idle loop on purpose that is really unneccesary (and heats up my laptop :looking: ).
Otherwise thanks for the clarification and have a good new year celebration ;)
theotherhiveking
12-28-2007, 03:59 PM
That's what I had expected. ;) I hope you have some time next year to bring a little bit more "threadiness" into the game.
So it may be a problem of thread synchronization? I already had the terrain loader in mind as the culprit.
The only question you didn't answer is why Regnum uses 100% CPU and I still think that the game does some kind of idle loop on purpose that is really unneccesary (and heats up my laptop :looking: ).
Otherwise thanks for the clarification and have a good new year celebration ;)
More cpu usage = more fps.
Prometheus
12-28-2007, 07:10 PM
More cpu usage = more fps.
Not neccesarily :biggrin:
I just did some test and you may be right in this case:
- When Regnum runs in background it uses about 27% CPU (on 1 core) and has a framerate of about 20 FPS on this system.
- When Regnum runs in foreground it uses about 99% CPU (on 1 core) and has a framerate of about 37 FPS on this system.
So my system really is to slow (with a 2,2 GHZ Core 2 Duo :( ).
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.