Ubuntu :: CPU Affinity / Taskset Does Not Always Work
Feb 20, 2010I have a program for which it seems to be impossible to set cpu affinity from launch with the command taskset -c <cpu list> <command> <arguments>
View 3 RepliesI have a program for which it seems to be impossible to set cpu affinity from launch with the command taskset -c <cpu list> <command> <arguments>
View 3 RepliesI have a question about using taskset. I am using Core 2 Quad box. I set the default affinity to CPU 0, by doing the following:
Edit: /etc/rc.d/rc.sysinit
Addline: /bin/taskset -p 1 0
That has been working fine for me, but from searching the web, I found some suggestion about adding an additional line:
/bin/taskset -p 1 $$
What does that line do?
I checked the man page of taskset and some references for regular expression, and I couldn't find the explanation about the $ character. By the way, 0 for CPU 0, correct? I checked via htop and seemed to be correct...
I have some questions.First, how can i obtain a process execution time ( after it terminated)??? Second, in a multi-core system like SMP how can i run different processes on different cores explicitly? i.e. how can i assign a process to a specific core?
View 1 Replies View RelatedDoes anyone know if there is a way to "unset" processor affinity? So if you bind a process to just one proc, but then want to tell the OS to revert to normal behavior? Also, when you bind a process to a processor, can other processes use that process or does it have exclusive usage of that proc?
View 1 Replies View RelatedI am using glib version 1.2.10.I came to know from somewhere that "pthread_attr_setaffinity_np(3)" does not work on this version for POSIX threads. Following error was coming:(.text+0x112): undefined reference to `pthread_attr_setaffinity_np'collect2: ld returned 1 exit status.All I want to do is to run 2 threads on two different processors. I cannot change the glib version.
View 3 Replies View RelatedAm investigating processor affinity theory and practice, am somewhat surprised at the paucity of information on something that has been a part of many Windows Enterprise type applications for more than a decade and although I haven't investigated would assume is supported by big iron UNIX.What it is Processor Affinity is the *NIX terminology for "soft" assigning a process and its threads to a specific processor core. On multi-tasking machines and particularly those which run heavy loads it can be useful to "advise" the Scheduler to isolate/assign heavy loads to a core separate from other processes. I also have a specific situation where I would like to run more than one instance of a specific app, but cannot when sharing the same processing environment.
What I've found so far By default, any and all processes are assigned an affinity that permits running on any and all available processors.The taskset utility can be used to modify the affinity for any process, which means that once an application/service/process has been launched, only then can the affinity be modified.It seems that the RH platform may also have a utility called tuna which might provide some tuning capabilities in addition to setting affinity but does not seem to be in the SuSE repositories and I cannot find source.Is there a reference or utility that can launch an application with a specified processor affinity?
there is any possibility that I can set in this application an affinity so that the processor binds it to core 2 for instance.Is this possible to do in an application that runs than under root? Or is this just possible after the application started with using the taskset tool?
View 1 Replies View RelatedI have a 8 core computer, which has 8 logical processor in total. I want to create 8 process(nodes). Each node is mapped to each logical processor. The order is code...
I wrote the code as below, could you please see whether it is correct? code...
how to make creative web cam working with ubuntu
View 1 Replies View RelatedI wanted some input on chronic problems with Ubuntu:
1. Why does wireless almost never work right on Ubuntu?
2. Why, when Ubuntu just decides to turn off my wireless card, can I not just turn it back on?
3. Why do tar balls almost never unpack right?
4. Why are printer drivers so buggy?
5. Why do my MP3 players and digital cameras not work with Ubuntu?
I spent 3 hours last night trying to unpack a tar.bz2 file so I can run my Ralink network card. It worked fine until my son unplugged my computer. Now my card is disconnected and it will not reconnect. When I check forums no one has a simple answer for something as simple as turning a network card back on. On my Apple, it's simple: click my wireless icon and hit "on." tell me an easy way to just turn my wireless card back on, it would renew my faith a little in Linux.
When I installed my 64 bit system of Ubuntu 10.04 the sound worked very well and I were very happy. The problem started however when I installed Skype which uses pulseaudio. As soon as I start skype (or any other application that uses pulse, HoN for example) the applications sound output or input does not work at all. If I have pulseaudio started in some way, applications that I suppose do not use it like spotify or flash player stops to produce sounds. And when I type "pulseaudio" in the terminal it gives me this:
[Code]...
I can't get flash controls to work. If the video auto-plays, it starts just fine, if not, I'm out of luck. I've tried reinstalling flash through the software center. Even if it autoplays, I can't control volume or pause or anything. I'm at the mercy of whatever is already there.
Ubuntu Karmic 9.10 - all updated as of 1/2/2009
Firefox 3.5.6
On a Lenovo Thinkpad R400
I'm not to sure this is the place I should post this, but couldn't find any place for it to fit. So here is the deal..I am running 10.10 with the standard LAMP setup. I am running a drupal 7 site no problems. What I need to do is run a multi site sub directory. (domain.com/newsite). So far the best I can do is get a directory index of the second site (domain.com/newsite), but cant run the installer. (I did the symbolic link to the doc root of the drupal install.)If I type in the url domain.com/newsite/install.php I get not found. I placed an index.html test page and it renders fine. I think I'm close but just not there yet.
Any ideas from anyone? I can get Sobdomains to work fine on a test mache, but sadly I need the domain/site to work due to lack of DNS support at the moment. I tried to get some info from the drupal forum, but everything always points to subdomin setups. I also posted over there, but it seems like the forums have very little support and are a bit on the slow side.
[Code]...
I'm having trouble getting compiz to work on my Laptop. It worked for a while and then I turned on Shift Switcher and a message popped up saying..."The new value for the button binding for the action Terminate in plugin Shift Switcher conflicts with the action Zoom Window of the Scale Addons plugin. Do you wish to disable Zoom Window in the Scale Addons plugin?" I was given the option of Set Terminate anyway, Don't set Terminate, and Disable Zoom Window. I clicked Don't set Terminate and ever since the only thing that works in compiz are the bindings in the general options. I've used synaptic to completely remove and then reinstall compiz but the problem persist. Something else weird, all of the changes I made are still there, even after complete removal, but they don't work?
View 2 Replies View RelatedWhen I try to hibernate, the computer just goes to a blank, black screen and doesn't turn off. I have to hold the power button to get it to shut down, and when I turn it back on none of the programs running before hibernation have been saved.
View 8 Replies View RelatedI just recently (about an hour ago) installed Ubuntu Netbook edition on my old laptop, and I was greeted with the message, that unity could not be run due to some sort of missing driver...fair enough, I was then greeted with the default Ubuntu desktop, I installed all my needed software (wine, google chrome) and installed the missing display drivers. I then rebooted the system, and once again I am stuck with the default desktop, and not the Unity interface. I checked the software center, and it says Unity IS in fact installed.. And yet I cannot make it appear. So now I ask you Ubuntu veterans. How do I make it work?
P.S. I wiped the system of windows, and the computer is an old HP Pavilion DV6000
I am trying to configure evolution to work with MS Exchange but cannot get it to work. I also have an android phone which is dead easy to configure, but I've tried so may settings but cannot get evolution to connect. Anyone also having had this problem and finally solved it? I also tried DavMail with no luck.
View 6 Replies View RelatedIf I have SMP kernel would it work with single processor or only work with multiple processors system?
View 6 Replies View RelatedI have this annoying problem since day one.I am testing out Red Hat RHEL5, everything is fine except DNS look up.If I ping www.google.com, it doesn't work, ping ip address it all works;if I bring up browser, put www.google.com it doesn't work, can't find the name, however, simply put ip address there it works.My DNS seeting seems ok, and the DNS works from Windows box.
View 2 Replies View RelatedI have followed the instructions at http://www.vcn.bc.ca/~dugan/setting-up-slackware.html (under "Making Firefox Perfect"), but I still get the error message"Firefox doesn't know how to open this address, because the protocol (rtsp) isn't associated with any program."
View 13 Replies View RelatedI am trying to set up an unused machine as a web server for my students.
I originaly tried with Redhat 9 and had the same problems. I am using an HP Pentium 4 system with 2 network cards.
1) The built in Realtek RTL8139 configured as eth0.
2) An add in Broadcom BCM5782 Gigabit card that was added I presume when the built in card failed (we have a number of machines like this around the school), configured as eth1.
I did not realize the second card was installed when I had Red hat 9 on the system, but I discovered it after installing centos 5.5. I have tried to configure the system to use DHCP with and without getting the DNS from the provider, and both ways the system complains that there is no connection, check the cable, so it will not activate the device.
When I configure the device to use a fixed IP, I can configure the device, but I can't ping anything on the network other than myself. I suppose it is possible that both network cards have failed, but I get green link lights with both cards, when I connect them to my router, so I am at a loss as to why neither board seems to work. I don't have a spare network card to slide in because the computer takes a special mini card. Is there an easy way to test the board to see if the board is a problem?
i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,
View 1 Replies View RelatedI just installed Squeeze_di_rc1, whit gnome, when i insert any usb stick i recive how can i solve it?At the same times i tried to format in fat 16 with gparted but the result is the same.
View 6 Replies View RelatedWhat used to work flawlessly in F14 now does not work in F15. I have done a fresh installation of F15 and all seemed to go well other than a few minor tweaks. In F14 I had an /etc/fstab file that worked well but in F15 does not work. I have 3 external USB drives, mybook, black & StoreIt. With F14 my fstab worked very well and booted regardless of weather or not any particular drive was connected at any given time. Typically I have the mybook and black connected at home and the StoreIt connected at work, but regardless it would boot and work without any problems.
[Code]...
I'm trying to get sendmail to work with php but i can't even seem to get it to work on it's own. I'm logged in as root (su root). I have in php.ini: commented out smpt and smtp port (win 32 only it says) and sendmail_from commented out
For unix only
sendmail_path=/usr/lib/sendmail
sendmail seems to be installed i can run it from bash. I try sending an email using:
sendmail example@whatever.com
message
ctrl + D
which i saw somewhere however the email doesn't seem to go through. I've also tried (after restarting apache server) to use mail() php function and that also doesn't work. Any ideas?
As far as I can tell, I have all the applicable applications and plugins (for this, Debian 5.0.6 installation). I type in Code:about:plugins in either iceweasel or epiphany browser and get a list that includes:
Code:
Installed plugins
Find more information about browser plugins at mozilla.org.
[code]...
Lucid on desktop. I'm interested in using U1, but have had no success getting it to work.
Tomboy notes: Telling me they are synchronized, but they are not.
I am trying to publish my key to a key server by typing,
Code:
gpg --list-keys
into terminal.
According to LaunchPad the output should say something like,
Code:
pub 1024D/12345678 2007-01-26
uid Geoffrey Hayes (My OpenPGP key) <geoffrey@bungle.com>
sub 2048g/9ABCDEF1 2007-01-26
I've installed several ftp clients available through the software center. I'm able to connect to my remote host and view directories, but for some reason every time I try to download my files/directories, it disconnects and doesn't help me at all. I've got a large remote site so I can't feasibly download each file through my file manager.
Does anybody have any suggestions to get an ftp client working on my computer?
The gpg key fix did not work for me. I have tried so many things including reinstalling 3 times.I am totally new to Ubuntu and Linux so at this point.
View 1 Replies View Related