Ubuntu :: Execute Programs By Console Forcing The Use Of Multiple Cores/cpus
Feb 28, 2011
I'm using bioinformatics programs i run from console on my system or on the server and some of them don't have a option for use multiple cores/cpus.There's a way to force it? some programs have to run for days and use a single core...
I'm using Ubuntu 10.04 x64, and I have an AMD Phenom 2 x4 940 CPU. First I have to underline that four cores worked perfectly in previous versions of Ubuntu as well as Windows.
When looking at system monitor it tells me that I have two CPUs/Cores, it should be four.
This is the output of CPU info:
Code: processor: 0 vendor_id: AuthenticAMD cpu family: 16 model: 4
I have a high resolution file (1080p) encoded with H.264 and when I play it back, it lags at certain parts (and enough parts to destroy the job of watching the video).
I don't think that my computer is that crappy and it has been able to play many H.264 encoded files with high resolution - so there is always a possibility that this file is just encoded poorly (lacking a better computer, I cannot test).
For information, I'm running Ubuntu 9.10 64 bit. I have a Intel Core2 Quad CPU Q9550 (@2.83 GHz). I have 8 GB of RAM (forgot the speed off the top of my head). And a Nvidia GeForce GTX 280 (1 GB of memory).
During the playback, the RAM is far from being completely used; however, it seems that one (and only one) of the cores of my CPU becomes saturated at 100% precisely at the moments in which the file lags. When the CPU utilization is below 100%, there is smooth playback.
My question is - is it possible to use all four cores during playback, or is such a process not capable of easy parallel processing.
Another side question is, how can I be sure that my GPU is being used in the decoding process - or is that also being under-utilized?
When I was using Virtual Box in Windows 7, I could choose how many CPU cores to assign to the guest OS. Now I'm using Linux, and when I installed Virtual Box, I couldn't find that option. System Monitor shows that when the VM is busy only one CPU core goes to 100% while the rest are near 0%. How can I make Virtual Box in Linux use multiple CPU cores?
I am somewhat familiar with SGE (Sun Grid Engine, now Oracle Grid Engine) commands but am having a problem when running parallel jobs.
Present Machine configuration: machine I - 12 cpus machine II - 12 cpus machine III - 12 cpus .... so on ... One_machine - 16 cpus
(I have all machine of 12 cpus and 1 machine having 16 cpus)
I want to schedule jobs on these machine such that if I ask for 12 cpus - my jobs should execute on any of the machines which has all 12 free cpus (eg machine I or machine II) in this case.
Eg. suppose I ask for 24 cpus
Option I : 12@machine1 12@machine2 ----- I need this
Options II : 10@machin1 10@machine2 4@machine3 ---- I don't need such a distribution
Hence, Option I is ideal here. Also, when running 12 jobs on machine1 (say) - even if all 12 cpus are not being used at some instance of time, none of the 12 cpus should be freed. In short, until my run finishes, all blocked cpus should remain blocked.
If you may understand, the purpose here is to run some performance tests.
Newbie question here. I just realized that I can tell make to use multiple cores to compile by doing PHP Code:makewhich is just awesome on a quad core with hyperthreading (I just compiled 2.6.33-rc5 in under 5 minutes!) I know aliases are possible, though I've never had much need. What I would like to know now, is if it would be safe to alias make to mean PHP Code:so that by default I use 6 of the procesors when building or if there would be occasions that compiling on multiple processors would be a bad thing
Whenever I monitor my CPU's, it seems only the first is ever utilized, with the second always being at 0%.Does this mean it is not being used, or just not being reported as in use?Is there anything I could do to improve the situation if it is not being used as much as it could be?On Windows, I can assign processes to both cores, or either one. Is there a way to do something similar in Linux?
How do i open .exe files using wine? I've tried right clicking it & opening it in a erminal but when i do this it saysProcess of pid=0015 has terminatedNo process loaded, cannot execute 'echo Modules:'Cannot get info on module while no process is loadedNo process loaded, cannot execute 'echo Threads:'
process tid prio (all id:s are in hex) 0000000d 0000000f 0
under the console 7 (ctrl+alt+f7), I have a virtual win xp, and I run some music and apps in it.. but, when I switch to any another console, it just shuts up.. also, when I log in as a root under console 2 and go back to console 7, sound card also shuts up..
I'm trying to run multiple commands on things I have found, how can I achieve this? find . -exec cmd1; cmd2 does not seem to work; it instead runs cmd2 after cmd1 has been executed on every file.
My query is i have a.sql , b.sql , c.sql files which needs to be executed using "$ db2 -tvf a.sql"; "$ db2 -tvf b.sql"; "$db2 -tvf c.sql" , script with which i can execute all these sql files in a single shot.
I cannot execute "untrusted" files/programs on xubuntu but I could on ubuntu? I'm admin but cannot edit permissions. I tried opening it with wine but still get the execute error and looked everywhere for a solution and can't find one.
I'm wondering if it's possible to write some sort of script so I can have an icon on the desktop which opens a combination of programs I use together frequently.Specifically, I would like to have an icon called "keyboard practice" which does the following:
1) Open QJackCtrl and "click" on Start; 2) Open the Hexter softsynth and make the Jack connections between it and my speakers; 3) Make the Jack MIDI connection between my MIDI keyboard and Hexter.
Running Ubuntu Server 9.10.I have a couple of programs that I would like to start at boot, they will both run forever. I have created a cron job with @reboot and that will start a program, but if I have multiple programs in there it waits for the first to finish before starting the next.
I use skype ALOT, and when skype is open and I'm in a call, no other program that uses a mic will function properly.
An mmo I play on-line has built in voIP, and the voIP only functions properly when skype is closed. (it does not work at all otherwise)
Just as a reference, if I try to use kRecord while skype is open it will give me an error saying that the sound card is busy, or something to that effect.
how should I go about sharing the mic between multiple programs?
Well I have been interested in programming for a while, and just found out about Linux and Unix. I started out with Java, but now I know I bunch: Flash, C++, C and others. I was working on a mac so I made a few flash games then started to work on iPhone games. I was board one day and I found out about Unix and I thought that would be something else to try.So in an attempt to learn about Unix I have been reading different articles about it, and have heard of using different languages in one program. The article I was reading didn't give any examples, and it assumed the reader has programmed Unix before.
So how do you write programs in multiple languages, which languages would you use, and why would you want to do that?
I have 11.1 on a computer. I updated it yesterday. Now K3B, VLC, and XDVDShrink are all broken. Possibly other programs broken as well. VLC refuses to uninstall via Yast. These are high-priority programs for this computer. Multiple people use this computer for multimedia and there is not much to entertain ourselves with in our very cold climate. In other words, it is mandatory that K3B, VLC and XDVDShrink return to operational status.
Should I just upgrade to 11.3, try to fix the broken 11.1? I prefer using KDE3, not KDE4, but I can sacrifice.
I am curious of how to make a GUI interface that uses multiple programs and commands. I have found wxwidgets as the most likely candidate for making my own interface.Is this the best programming language for a beginner?
Normally when a program is open an entry is placed on the taskbar in order to easily find it, which is useful when a lot of programs are open. In Ubuntu 10.04, when I moved a program to the other monitor (I'm using 2 monitors) the taskbar entry also moves to the taskbar on that monitor.
Now I switched over to Ultimate Edition, which is Ubuntu 10.04 with a lot of stuff added to it. When I drag a program to the other monitor, the entry in the taskbar disappears, but it does not reappear in the taskbar of the other monitor. So now the only way for me to find a program on this monitor if its hidden behind other windows is to use alt-tab.
I'm trying to learn to set up code and web hosting etc and learn about server admin so I've been resisting the urge to install a gui. However, I would like to know if there is some way to make the console (I think that's what its called - basically its like a single terminal window) have two "multiple terminals" similar to how I can open multiple terminals in the desktop version?
I have just purchased an AMD Phenom II 1055T 6 Core CPU to replace my aging CPU. The problem is only 1 core is visible to Ubuntu, Does it actually support 6 cores?
My setup: HP XW8200 2x 3600MHz Xeon CPUs 4GB RAM Quadro FX3800 PCIe graphics Dual boot Ubuntu 10.10 32bit (primary use) and XP (gaming use only)
The issue I have is that the CPUs seem to run at 100% constantly in Ubuntu meaning that the CPU fans are constantly at high. This makes the machine sound like a wind tunnel!
It is nice and quiet in XP.
I installed GKrellM monitor which is what is telling me about the 100% CPU useage.
Would using the 64bit Ubuntu make any difference? (dont really want to reinstall tbh)
I'm buying a new fanless desktop unit with 2 x 1.66GHz Intel Atom D510 CPUs. The vendor calls these a '64-bit processor'. But the unit has just 4Gb of memory and I don't want the fuss of 64-bit for the basic stuff I do. So I asked them to load Lucid-32.
Will the processors work with 32-bit?
The vendor tells me 32-bit won't make full use of the 4GB, only three and a half, but all else will be fine. So they'll load 32 and I'll try a live DVD of 64 in my own time. But I thought 32 bit was fine up to and including 4GB of memory?
I have an i7 980x (hexacore) machine, installed with ubuntu 10.04. Has the stock 2.6.28-15-server #52-Ubuntu SMP kernel. When I check my /proc/cpuinfo, I can see only 8 CPUs. Was expecting to see 12. Is there any way to get all my 12 CPUs.
I've got some weird stuff going on with my F14 setup, I seem to be getting loads of CPU activity with nothing happening! Both CPUs are running about 60% as soon as I log in to my normal account. If I log into another account it drops to about 15%. Sometimes when I log out I get a message saying that 'an unknown process' is still running. Looking at processes it is not apparent what is causing this as nothing is using that much CPU. It does show some processes with no name, which seem to come and go and change ID. The only things I've installed recently are dropbox and myth tv. I've removed dropbox but no change. how I can find out where my CPU time is going!