Debugging SMP Code with UML 20
chromatic writes "It's easy to write code that works fine on single-processor systems but dies horribly on multi-processor boxes. Instead of spending thousands of dollars on a four- or eight-way system, you can use UML to emulate a multi-processor machine."
Not the final solution (Score:5, Insightful)
Re:Not the final solution (Score:2, Interesting)
An appropriately malicious emulation of SMP hardware can force these faults out much faster than they would appear in real life. One simple example would be cache emulation. IRL cache is limited and will be flushed automatically at some point. The emulation can treat cache as unlimited and only flush it on operations that guarantee cache flush. This will shake a lot of difficult-to-reproduce bugs out quickly.
Re:Not the final solution (Score:1)
Bochs also does this (Score:5, Interesting)
It's no speed demon, but it's about the nicest free tool for machine-level debugging.
Re:Bochs also does this (Score:1)
Re:Bochs also does this (Score:1)
solution in need of a problem (Score:4, Insightful)
And be able to use the -j flag to make
Re:solution in need of a problem (Score:2)
Why not blow off all of the discussion with the management for the funding? You can thug some RAM from the manager's machine to support the extra address space requirements, and irritate his pointy-hair-edness at the same time.
Only joking about the unethical behavior.
Limit to number of simulated processors? (Score:2)
I wonder if there is limit to the number of simulated processors. Now people can simulate Linux running on a 1,000,000 CPU computer.
Imagine a Beowulf Cluster of these things!
Re:Limit to number of simulated processors? (Score:1, Funny)
why, you foul villian.
Uhh (Score:2)
UML Confusion (Score:1)
Whats Your Favorite Kind of Cheese? (Score:1)