General :: Processes And CPU 4-core - Which Core The Program Used?

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


ADVERTISEMENT

Programming :: Core Dump Issues. Program Crashes But Does Not Generate Core Dump File?

Oct 7, 2009

I want to generate core dump files from my program when it crashes. Its a pretty big process and has about 10-11 threads in it.I have followed the documentation to enable core dump by setting ulimit to unlimited etc. I quickly tried "A demo program creating a core dump" from the following webpage, which succeeds in Segfault and dumping a core file in the directory that I configured.However, I tried running my original program and caused it to crash. I did this by making calls to kill(), raise() or the same null pointer access as shown in the webpage above. In each case, my program crashed but did not generate a core dump file. Am I missing something?My program is in C++ and my environment is Redhat 9.0 (kernel 2.4.20)

Going through the "Why do I NOT get a core dump?" section on the same webpage as above, I can see two potential problems. One - there are issues with the suid/sgid (bullet # 6). I am not able to change any settings with suid because my system does not contain either /proc/sys/fs/suid_dumpable or /proc/sys/kernel/suid_dumpableTwo, my program has threads in it and the bullet # 8 is the problem.

View 1 Replies View Related

General :: Only One Core Of Dual Core Processor Are Working

Mar 14, 2011

I recently read in a forum that by default the Linux kernel only activates one of two cores in a dual core processor. Searching online gave one option to find out and that was the mpstat command. I therefore ran the command and got the following output.As the result says, it shows only 1 cpu. I was wondering what I could do to activate both cores in my machine, and whether doing so was going to cause me any problems.

View 14 Replies View Related

General :: How To Know The Program That's Dumping The Core

Aug 27, 2011

I am seeing cores dumped in a particular directory continuously. I am sure there must a script that's continuously starting a process which is core-dumping and dying. But, how can I find which process is it?

View 2 Replies View Related

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 View Related

Ubuntu :: Run Dual Core - Crash - Single Core Runs Perfect

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

Fedora Installation :: Dual Core Only Showing Single Core On F14?

Nov 3, 2010

I just loaded F14 on an old Dell Dimension 3000 with a dual core processor but only one is showing. Here's the output from top:

processor: 0
vendor_id: GenuineIntel
cpu family: 15
model: 4

[Code]....

View 2 Replies View Related

OpenSUSE :: Get Application To Utilize More Than One Core In Multi-core Setup?

Mar 27, 2011

I have a command line OCR program called OCR Shop XTR (Vividata corp) that I am using on a system with a 6-core AMD chip. I changed the bios so that the 6-cores were activated, but htop shows me that while the program is running, I am only getting activity on one core (the program maxes out the one core with consistent usage between 97% and 100%).

I have read that many programs are not written to take advantage of multiple core cpu's. However, I am just hoping that there is some way to get this program to take advantage of the extra cores. Does anyone know of a way to invoke programs from the command line which would spread the workload out among additional cores?

Here is the output of uname -a:Linux linux 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 i686 athlon i386 GNU/LinuxAnd here is the output for one of the cores from cat /proc/cpuinfo:processor : 5

vendor_id : AuthenticAMD
cpu family : 16
model : 10
model name : AMD Phenom(tm) II X6 1100T Processor
stepping : 0

[Code].....

View 5 Replies View Related

Ubuntu Installation :: Dual Core Support Core 2 E8500 Out Of Box?

Feb 14, 2010

Just a quick question. Does Kubuntu Karmic support core 2 E8500 out of the box or do you need the SMP kernel?

View 3 Replies View Related

Programming :: Multi-core Support - Control On What Core Will A Thread Run

Oct 31, 2010

Is there any Linux API that will let me control on what core will a thread run? If not, do I have to use assembly language?

View 2 Replies View Related

General :: Compile A C Program In Fedora Core 12 - Error

Jul 6, 2010

When I compile a C program in Fedora Core 12 using the following format: gcc -o program -static program.c

I get an error:

What do I need to do to make the program compile correctly with the -static flag ?

View 1 Replies View Related

Debian :: Wheezy Only Recognizes 1 Core Or Dual Core CPU?

Sep 7, 2011

I have now installed Wheezy on two different hard drives and in each case it seems only one CPU of my dual core CPU computer is recognized. System Monitor, Gkrellm and lscpu show just one when prior to the new install the old Wheezy showed both CPU's. I have put the hard drive into two other computers with dual core CPU's and all show just one CPU.

Interestingly System Profiler and Benchmark (hardinfo?) > Devices > Processors now show a large amount of processor infomation when with the old Wheezy I would only see both CPU's listed and nothing else.

View 14 Replies View Related

Ubuntu :: Lucid Lynx - Dual Core - One Core Always At 100%

May 15, 2010

I've a Compaq CQ61 laptop, and i noticed that one of the cores is always at 100%.

I didn't check the duration of the battery but surely it will "eat" my battery in a hurry

View 1 Replies View Related

Programming :: Get Process Running CPU Core And The Utilization On That Core?

Apr 27, 2010

Assume someone bind a particular process to a particular CPU core(In multi core machine) by using sched_setaffinity() like functions. Then how we can get that process running core id and CPU core utilisation of that process on that running CPU core(Pragmatically or by a Linux command)?.

View 5 Replies View Related

Programming :: Perl Child Processes Become Zombie On A Multi-core Processor?

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

Fedora Installation :: Upgrading From Core 4 To Core 10?

May 20, 2009

I have created a virtual machine of a system running Fedora Core 4 and I need to upgrade it to Fedora Core 10. Based on what I have read, it iis possible so I started theupgrade process. I get an error message saying that /dev/hda6 (my root paritition does not exist) even though it does.

Does the installer need to read a label from /etc/fstab? I executed tune2fs -L / /dev/hda6 amd ,and added LABEL=/ for the corresponding entry for fstab. but the FEDORA CORE 10 is still giving the same problems for the installation process. Should I upgrade to an intermediate verson like Fedora Core 7 first?

View 14 Replies View Related

CentOS 5 Hardware :: Infiniband (mlx4) Works On 16-core System But (now) Fails On 32-core System

Jan 27, 2010

We have a small cluster of 20 HP systems, all running CentOS 5.3 in an NFS-root environment. Half are quad-socket, quad-core Xeon E7340 @ 2.40GHz (total 16 cores), the other half are 8-socket, quad-core Opteron 8354 (total 32 cores). All systems have a Mellanox Infiniband adapter ("Mellanox Technologies MT25418 [ConnectX VPI PCIe 2.0 2.5GT/s - IB DDR / 10GigE] (rev a0)")

With kernel 2.6.18-128.1.6.el5, infiniband works fine on all systems.

With the update to kernel 2.6.18-164.11.1.el5 (and both types of node running the same NFS-root image), the 16-core Xeons still work fine. Infiniband no longer works on the 32-core Opterons. Specifically, either the ib0 interface fails to appear, or it does appear but when configured with an IP address, doesn't actually work. In either case, loading the IB kernel modules takes a long time, but I haven't instrumented the load script yet to see which module, if any, is at fault. More errors listed below.

However, if I tweak the BIOS of the 32-core systems to reduce the per-socket core count to 2 (so effectively 8-socket, dual-core, down to a total of 16 available cores), Infiniband starts working again. Putting it back to 32-cores makes it fail. Booting the older kernel makes it work again. In summary: old kernel, IB works on all systems. Newer kernel, IB only works on 16-core systems.

Updating the IB firmware from 2.5.0 to 2.7.0 (latest available) doesn't help. I also did a full 'yum update' to make sure that libmlx4, openibd all other associated packages were up-to-date. Doesn't help either.

Some errors that appear on 32-core nodes:

ib_query_port failed (-16) for mlx4_0
ib_query_port failed (-16) for mlx4_0
mlx4_core 0000:04:00.0: SW2HW_MPT failed (-16)
mlx4_core 0000:04:00.0: SW2HW_MPT failed (-16)

[Code]....

View 5 Replies View Related

General :: Difference Between Fedora Core 4 And Fedora Core 14?

Jan 12, 2011

I am in school for my CIS degree and the book I am using this session covers Windows XP and Fedora Core 4. I am having trouble finding & downloading Fedora Core 4. My question is: Is there a big enough difference between Fedora Core 4 and Fedora Core 14 that I would not be able to use 14 instead of 4?

View 14 Replies View Related

Ubuntu :: Possible To 'assign' Program To Core?

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

Ubuntu :: Only Single Core Active On Quad Core AMD When Acpi Is Active?

Jun 8, 2011

Only Single core active on quad core AMD when acpi is active.with acpi=offuname -aLinux dvip4 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64 GNU/Linux

Code:
cat /proc/cpuinfo
processor : 0

[code]...

View 1 Replies View Related

Software :: Install Older Version Of Gcc 2.95.3 In Fedora Core 8 Or Fedora Core 12?

Mar 14, 2010

i download the rpm package of gcc .

View 10 Replies View Related

Programming :: Core Dump Analysis Require A Program Name / Why Is So?

Jul 21, 2010

To analyse a coredump, I need to specify program name/path in GDB/KDevelop. Since the program name along with arguments is also within a core dump, I wonder if it doesn't keep the proper path of program that crashed and so asks for it?

View 3 Replies View Related

Software :: Install A Program On System (core 5) But Fails Due To Fort77

Apr 9, 2010

I am trying to install a program on my Linux system (Fedora core 5) but it fails because there is no fort77 compiler. I know that I have working ifort on my system, but I need fort77. It looks like that the program that I am trying to install can also be compiled with g77, but again this one is also missing. how I can get these compliers and get them work on my system.

View 3 Replies View Related

General :: Run On One Core And Windows The Other?

Apr 20, 2010

I know this is probably a totally ludicrous question, but is there a way to have Linux run on one processor and half the RAM in the background while Windows is in the foreground... and switch between them at will?

View 14 Replies View Related

General :: Binding Interface Per Core?

Jul 20, 2011

I just wonder, is it possible (using Linux 2.6) to limit overhead done by ethernet interface to one specific core. Ie. I have core2duo CPU, and two ethernet interfaces: eth0 and eth1. Is it possible to move system load caused by packets comming on eth0 to CPU0, so the other core (CPU1) will be idle?

View 1 Replies View Related

General :: Get Load Average For CPU Core

May 19, 2010

How to get the load average for each CPU core in multi core(eg:duel core machine) processor environment. I tried using,

Code:
1. cat /proc/loadavg
2. uptime
3. top
But all of those commands gives the load average for whole system but not particular CPU core. Are there a way to take the load average for CPU core(Or any mechanism that can be done programmatic manner).

View 6 Replies View Related

General :: How To Run The Process On Multiple Core

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

General :: Difference Between CPU Core And Sockets?

Mar 26, 2010

how to differentiate cores and sockets in CPU?

View 5 Replies View Related

General :: Drive Defragmentor - Core 11 ?

Aug 22, 2009

I have been a Linux user for a maybe a month now. I am quite new and I am just starting to get the hang of things. Well my question was simply is there a hard drive defragmenter software for Linux? I am currently using Linux Fedora Core 11 32-bit. I did tons of research on google and everywhere I go, it always says "You dont need to de-fragment Linux since it has a smart file system." , however I really need a software utility that can be installed and works for Linux for other purposes.

Link or a suggestion to a software utility that allows de-fragmentation.

-Maybe this information might help for the software choice.

-If I open up system monitor and click on the file systems tab, it says 193.7mb is ext3 and 19gb is ext4. So I am guessing the main file system of my OS is ext4.

-Also I might as well mention this in this post, are their any free-ware virus scan programs similar to malwarebytes anti-malware for Linux? I know Linux doesn't really need it but I do, if you know any please mention it.

View 14 Replies View Related

General :: Missing CPU Core On Boot?

Jun 11, 2010

I'm running Linux on an Intel Core 2 Duo processor. When I apply power to my computer, it boots into one core but appears to leave the other one idle. On the screen, it prints:

....
SMP: Allowing 2 CPUs, 1 hotplug CPUs
.....

I can confirm that only 1 CPU is active by logging in and examining /proc/interrupts and /proc/cpuinfo. After issuing a "reboot" command, the screen shows:

...
SMP: Allowing 2 CPUs, 0 hotplug CPUs
...

So, when I do a cold boot, I one get 1 CPU. When I do a warm boot, I get both CPUs. This is a problem for me because I'm running Linux on an embedded board and I need both CPUs to be running.

I've played around with BIOS settings, the boot string, kernel configuration, and CPU hot plugging. I can't seem to find a way to get both processors running without booting the system twice.

I thought that the CPU hot plugging path showed some promise but I can't seem to get that feature working on my system. The first issue is that the Linux documentation doesn't seem to match with what I'm seeing. It states that you should be able to go into /sys/devices/system/cpu/cpuX/ and write a zero or a one to the file labeled 'online' to disable it or enable it. When I go to /sys/devices/system/cpu I only see a directory for cpu0. There isn't a directory for cpu1.

After a reboot, I do see two directories int /sys/devices/system/cpu (cpu0 and cpu1). At this point, it won't let me 'offline' the second processor. The echo command gives me an error. (By the Way: the 'online' file in each cpuX directory has read only permissions.) This error occurs after I've changed the permissions on the file to read/write.

I confirmed that the following parameters are set in my .config file: CONFIG_HOTPLUG, CONFIG_HOTPLUG_CPU, CONFIG_SMP, CONFIG_SUSPEND_SMP

I've done searches on google until my eyes popped out and can't find much information. I see others have had similar problems but they all seem to link back to ACPI in BIOS. I've already played with all of those settings and I didn't see any effect. One reason I don't think it's a BIOS problem is because a warm boot (reboot) seems to 'fix' it.

I've tried different kernels, different distributions, and different computers. I see similar behavior in all configurations. I feel like I'm missing something fundamental.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved