Controlling multiple screens from Ubuntu 10.04 with many cores

0

I'm running x64 Ubuntu 10.04, desktop edition. I've got 2 big graphics cards that handle 2 HDMI ports each. I've got 6 cores on processor as well.

I want to be able to show a different movie on each monitor wired up to each HDMI port, preferably FAST! So maybe use a processor for each card or something.

  1. How do I tell a media player (VLC, XMBC) to play on a specific screen (how to I "point" it to the right one)?
  2. Where do I start on delegating tasks to cores? I've never done multicore/threaded optimization before.

I'm looking for suggestions of software, packages, or code to start off with. If you know of tutorials online somewhere, that's really really great. Thanks!

lollercoaster

Posted 2011-06-21T18:54:04.477

Reputation: 121

I think this would be better asked on superuser. – Flimzy – 2011-06-21T19:03:33.467

ok, should I repost there? – None – 2011-06-21T19:14:39.200

You can, although this question will likely be migrated there soon. – Flimzy – 2011-06-21T19:15:25.877

Answers

1

You can run separate X instances on each card or even each monitor. Xinerama needs to be off for that. If you run separate X instances, I think that they'll then be confined to the GPU they're on.

As for task delegation, that's getting pretty low level. You may need to read around docs for the kernel. "nice" possibly could help point you in the right direction. It'd be cool if 'nice' allowed you to dictate where things run, but that doesn't seem very likely.

You may be able to hack it by running things out of OpenVZ containers that are assigned to certain execution threads. I've never really tried though. As a user, you shouldn't ever need to really manage your resources that way. But yes, when I got my 8 core machine, I too wanted to toy with that a bit.

Have fun!

James T Snell

Posted 2011-06-21T18:54:04.477

Reputation: 5 726

sorry, what are X instances? – None – 2011-06-21T19:18:18.917

err, that's kind of a deep rabbit hole if you're asking about it. Your graphical UI lives on top of a program called "X".. When a copy of X runs, it reads a config file and makes use of whatever hardware it's told to use (monitors, graphic cards, keyboards.. etc). You may be able to quickly set up separate "display views" through some "Displays" system preference/configuration tool.. Or a config tool specific to your video cards. Are you on ATI cards? – James T Snell – 2011-06-21T19:32:34.117

Yes, mine is this guy: http://www.newegg.com/Product/Product.aspx?Item=N82E16814195098

– lollercoaster – 2011-06-21T22:05:43.497

So provided you have the proprietart AMD/ATI driver installed, then you can configure it through the ATI Control Panel - somewhere in your Administration menu (on Ubuntu, which I see tagged). – James T Snell – 2011-06-21T22:12:46.643

0

You can use the taskset command in linux to launch a program on a specific core. You can also use it on already running programs to tie them to a specific core.

XBMC has built in support to tie it to a specific screen. You can configure this by opening XBMC->Settings->Video Output->Display Mode and then set that to the screen you want.

I don't know how you would tie a specific program to a specific graphics core but is that really necessary?

Paxxi

Posted 2011-06-21T18:54:04.477

Reputation: 6 952