Slackware :: Multiple Core CPU's And Can Assign Processes To Both Cores, Or Either One
May 15, 2010
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?
View 10 Replies
ADVERTISEMENT
Jun 23, 2010
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
[Code].....
View 1 Replies
View Related
Mar 26, 2011
I've a program that launches new processes, and wait for them to die before it exits. So, for example, my program is a process, and it launches 3 more processes, and when the 3 child processes end, it will exit.
As you see, at end of the example, the program used a total number of 4 processes.
1 - Now, I'm running this program in a CPU with 4 cores. This means that the program used each core for each process?
2 - How can I know which core the program used?
View 1 Replies
View Related
Sep 2, 2011
There is a computer with two "Xeon(R) CPU X5550 @ 2.67GHz" CPU. The Hyper-threading is enabled, so it looks like 16-core system, but really there is only 8 physical cores.
I know that when hyperthreading is enabled, each physical core is splitted into two virtual cores. I want to know, which pair of virtual cores shares a physical core and which are not. Or, how (in what order) will Linux enumerate HT-cores comparing to real cores. (enumerating is done for sched_setaffinity and taskset masks).
I have a dump of /proc/cpuinfo file from the system.
I think there are possible:
CPU0-CPU7 are not sharing phys. core. CPU8-CPU15 too. But sharing is in pairs CPU0+CPU8, CPU(i)+CPU(i+8) and so on. or CPU0+CPU1 are from single physical, CPU2+CPU3, CPU(2*i)+CPU(2*i+1). or exotic CPU0+CPU15 sharing, CPU1+CPU14 ... or random?
The hard moment in this case is that there are 2 physical dies of CPU (two sockets), and usual recommendation of using "physical id:" field can't help
The cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU X5550 @ 2.67GHz
[Code].....
View 1 Replies
View Related
Jul 28, 2010
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?
View 2 Replies
View Related
Jul 26, 2010
Obviously I don't know that much about CPU architecture. I have a fancy new quad core CPU in the machine I just built. Now, given the current state of technology, two or many times three of those cores are pretty much sitting idle.My question is: Is there any way to utilize those extra cores with programs not optimized to take advantage of them? If I have some CPU intensive application, is there any way to tell it to utilize a core that's idling instead of the first core that's probably already got a bunch of processes running on it?
View 7 Replies
View Related
Jan 27, 2010
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
View 10 Replies
View Related
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...
View 1 Replies
View Related
Apr 11, 2011
I have written a simple script which has to find required patterns from a bunch of files ( where each file is around 2 GB each,which contain the output of seq 1 10000000000000) on an 8 core machine.I am current forking 6 child processes which run simultaneously on 6 cores of the processor & have to search for the required pattern in 6 different files & inform the parent process when a pattern is found using a PIPE.
The problem is,when a child process is done reading a text file looking for a pattern,it is becoming a zombie process.It exits cleanly when i put a $SIG{CHLD} = "IGNORE"; in the script.Can any one tell me whats going on & how do i improve the communication between child and parent processes?
Code:
#!/bin/perl
use strict;
[code]...
View 3 Replies
View Related
Jun 13, 2011
I have running license server on my server. Right now I would like to write small status script and check if software is running.My software include 3 deamons:
1) daemonA
2) daemonB
3) daemonC
My script should check, if each of this deamon is running. If all deamons are running then script should print short output: "License server is running" if one of this daemons is not running, output should "License server is not running". Is it possible to write small loop to check it ? Let say, loop will take new daemon name from deamons pool and will check if its running. Sometimes I need to check more than three daemons of one Program and I dont know how to write good script for this. Maybe somebody could help me with this loop that in the future I could also use; daemonD, daemonE, daemonF.etc.etc. if all daemons from pool is running then..."Software is running"
View 3 Replies
View Related
Oct 23, 2010
As an assignment i was doing a program to create two process using fork and pass messages between them using message queue.Did it worked well until my friend tried to copy it using scp.suddenly all hell broke loose as processes without ran syncronisation ie. in tech terms the process just wont wait wen a message queue is empty.it keeps on executing randomly.but after a reboot .. everything worked fine. until again i tried to do scp on my system on purpose. and again the program just went mad.
View 3 Replies
View Related
Jul 27, 2010
This is the second new install of 10.4 on the same machine with the same issue. After boot, as soon as user logs into the desktop, sys mon shows cpu at 100 percent and a steady climb in ram usage. several processes are spawned continuously until all ram is consumed and then moves on to use scratch space.
Using top, the process count moves into over a thousand total processes. Some investigation using top, ps, and digging into the /proc folder shows a ppid of 1 If the machine is booted to shell, top shows 120 processes and is stable. Some of the processes running repetitively are the gnome toolbar, nautilus, and I wish I was clear headed enough to write the others down before I left work. I can certainly get a more complete list in the morning.
I have swapped out ram, and the processor with no success. I have also tried apt-get purge ubuntu-desktop then installing with apt, this did not resolve it. As mentioned at the top of the post, this is the second install with these symptoms. The first install started showing the issue about 10 hours after first boot. On this second install, all was working fine for a couple days before this started in.
View 9 Replies
View Related
Sep 2, 2010
when I start my application it creates a message queue and forks a process. The child process reads multicast packets from the network and writes to message queue. The parent process reads packets from message queue and compares source ip and sequence number (it is part of payload) with last 64K packets received to see if it has received a duplicate packet. I am using message queue as a buffer because I do not want child process to drop any packets while it is comparing it with previously received packets. The message queue is large enough to contain 64K packets. To compare the old packets I am using array of structures as circular buffer. During a spike I may receive 100 - 120 packets per milli second.
When I run my application, the parent process keeps up with the child process, I can see that with "ipcs -q". After about 30 seconds it cannot keep up and the size of message queue keeps increasing until it is full. When I run "top" I can see that one CPU/core is hundred percent busy while other 7 cores are idle. It seems that both processes are running on same core and the child process gets interrupts everytime there is a packet on the net and starves the parent process.I am running RHEL 5. The system has 24GB memory and my application is the only application running on it. It is a HP G6 server.
View 3 Replies
View Related
Sep 3, 2010
I'm looking for a way in Perl to be able to take a list of servers, ssh multiple commands to it and store the results. If I do this process serially, sometimes one server will hang the whole script and if it doesn't, it still takes hours to complete.
I'm thinking what I need to do is make a parent loop that calls out a separate process that passes the server name to the child sub process and then executes all the commands I have defined in its own process. If one server 'hangs', at least that won't stop the script from doing all the other servers in the list.
I'm guessing using the fork() command would serve me best, however, all the online descriptions I have found have been vague at best.
View 4 Replies
View Related
Mar 28, 2010
My server is really slow. When I did a top -c or ps aux, below shows up. Shouldn't there be only one? Shall I kill all those processes and leave only one?
3135 nobody 15 0 15900 5232 1860 S 0.0 0.1 0:00.17 /usr/local/apache/bin/httpd -k restart -DSSL
3173 nobody 16 0 15900 5244 1848 S 0.0 0.1 0:00.05 /usr/local/apache/bin/httpd -k restart -DSSL
3174 nobody 15 0 15900 5232 1860 S 0.0 0.1 0:00.15 /usr/local/apache/bin/httpd -k restart -DSSL
5153 nobody 15 0 15900 5228 1860 S 0.0 0.1 0:00.04 /usr/local/apache/bin/httpd -k restart -DSSL
7598 nobody 16 0 15900 5228 1872 S 0.0 0.1 0:00.20 /usr/local/apache/bin/httpd -k restart -DSSL .....
View 5 Replies
View Related
Oct 26, 2009
How can we run the linux process like tar on multiple core? For example if we want to build the kernel we can use -j4 to distribute process of 4 different core. Is it possible to run long time consuming process on mulitple core?
View 1 Replies
View Related
Mar 3, 2011
my computer is often very slow, to the point of stalling. I tty'd in and when I ran ps -ef I noticed about 10 /usr/sbin/apache2 -k start I dont even want 1 apache running. Any suggestions why these are running, or how to stop it? Well, I can stop it with a sudo killall, but how can I make sure it doesnt happen again?
View 5 Replies
View Related
Sep 24, 2010
I've got this problem for a few weeks and I cannot figure out. I'm pulling my hair out. I have a server installed PHP, lighttpd and redis. Sometimes, I got the following messages in the error log of lighty: Code: 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth er backend instead: reconnects: 0 load: 567 2010-09-24 13:57:33: (mod_fastcgi.c.3011) backend is overloaded; we'll disable it for 1 seconds and send the request to anoth
er backend instead: reconnects: 0 load: 626 and:
[Code]..
View 3 Replies
View Related
May 11, 2011
I have an old laptop.The laptop's 2 keys(g-h) are not working.I think the keys assign to different keys that the keys are windows keys near CTRLs because linux dont use these keys.Can I assign not working keys to the windows keys?
View 9 Replies
View Related
Jan 6, 2010
The router is set up to use a 64-bit WEP passphrase. From what I've read, that means four different hex keys. One of which is meant to be active. I've tried each of the four generated keys, one-by-one. I've also tried putting them all in and activating one, but the syntax seems to be wrong.
I read Alien's Wiki on it, and various other sources. People keep suggesting wicd, but I want it to work with the rc.inet1.conf file first. Just so I know what needs to be entered in order for that to happen. I have a desktop to set up eventually as well, and that shouldn't need wicd.
My configuration file*: [url]
My lspci entry for the wireless card:
Code:
*I've edited this several times since upload, but nothing has worked so I don't think I need to keep it up-to-date. The online file is basic configuration, I believe.
View 2 Replies
View Related
Feb 28, 2011
Obviously Nagios will page out once for each host and service goes down. But, is there a way to configure it to page out once, kind of like "Hey, LOTS of stuff just went down." Rather than 200+ individual pages?
View 1 Replies
View Related
Sep 22, 2010
I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs
View 1 Replies
View Related
Jan 11, 2010
I've got a few simple questions that have been bugging me for days:
What do we need slack64 for? What are the differences and advantages?
Is it true that EVERY core 2 duo processor is both 32 and 64 bit?
View 1 Replies
View Related
Apr 2, 2010
A question to those, who have 64-bit or 2,3.. core CPU - is there any speed up in common PC performance? How many "bogomips" at dmesg output ?
View 14 Replies
View Related
Jul 17, 2011
I have a weird HD video in wmv and mkf files playback problem. Every HD video i attempt to play using vlc with vaapi hardware acceleration looks like this: My hardware configuration is i3 cpu, and i am using it's integrated HD2000 video card, which has DVI, HDMI and VGA outputs, which all i am using (not at the same time). However, the problem is present in every combination (DVI only. DVI+HDMI. DVI+VGA. DVI+HDMI+VGA).
As for software, I am using stock 32bit Slackware 13.37, with stock 2.37.6 kernel. And for HD video playback I have installed VLC-1.1.10. libva-0.32.0 and MPlayer-20110624 all these packages came from Alien pastures, so they are quality packages And my vlc settings are also stock :/
[Code]...
View 3 Replies
View Related
Jul 3, 2010
I read somewhere that the compositor of XFCE make a nice effect. But when I activated it became significantly slower. I have a core i7 and a Ati 5730, with the latest Ati drivers.
I need to do something in xorg.conf or another configuration?
View 10 Replies
View Related
Nov 18, 2010
Booting up this morning, no problem. But I accidentally let my laptop go into suspend mode, which doesn't work, so I had to force a restart (Suspend mode on my laptop won't allow me to wake it up again). Now, on rebooting, X doesn't work. I usually boot to RL3 then use startx. Now it just flashes the screen then gives me this error -
Code:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
Fatal server error:
Failed to activate core devices .....
Fatal server error:
Failed to activate core devices.
Please consult the The X.Org Foundation support at [URL] for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. If I su - to root and then do "init 4", I get to xdm, and I can log in. X then starts, but with no sound, wrong keymaps, launchers not working; all sorts of things wrong. If I startx as root I get a normal desktop. I have tried copying root's xinitrc to /home/spoovy, but makes no difference.
View 2 Replies
View Related
Sep 22, 2010
I have 3 accounts setup on this machine. One is root, one is my own, and one is for my kids. My account and root work fine, but today when I tried to log my kids on, startx fails (it also fails from runlevel4). I have tried creating new accounts and they fail as well. I'm not sure when the issue started, but it's been less than a week I believe. The consistent error which I receive is
Quote:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config. Fatal server error: Failed to activate core devices.
View 3 Replies
View Related
Mar 4, 2011
i installed slackware current straight(make iso from it and installed on clean disk) and i installed Multilib current from alien and now when i wanna compile wine source its write
"configure: OpenCL 32-bit development files not found, OpenCL won't be supported.
configure: libsane 32-bit development files not found, scanners won't be supported.
configure: gstreamer-0.10 base plugins 32-bit development files not found, gstreamer support disabled
[code].....
I checked i got that libaries in /lib and /lib64 why it doesent work it was working on slackware 13.1 with multilib
View 4 Replies
View Related
Apr 1, 2011
i am running gigabyte GA-M68M-S2P and AMD sempron 2.7. the problem is when i try to run dual core. it will boot and run for 2mins then it crashes. single core runs perfect.
View 6 Replies
View Related