Programming :: Allocate A Cpu Core For Kernel Process?

Aug 3, 2010

My system has Intel Xeon 4-core cpu(hyperthreading 8-core) and run 64-bit linux. I want to allocate one core for general process(kernel process & other processes). And then, I want to allocate the rest of core for the specific multi-thread program.

Q1: I know that I can pthread_setaffinity() for user-mode thread and mpstat for monitoring. So, how can I allocate a core for kernel process and monitor it?

Q2: How can I restrict use of the cores for the multi-thread program? I don't want kernel process to use the cores for the multi-thread program.

View 1 Replies


ADVERTISEMENT

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

Fedora Installation :: 3 Core On Old Hard Drive - Error: Couldn't Allocate Requested Partitions

May 6, 2009

I'm trying to install Fedora 3 Core on an old hard drive I had lying around. The problem I'm having is that when I go to manually repartition the hard drive with Disk Druid I get this error: Could not allocate requested partitions: Partitioninf Failed: Could not allocate partitions as primary partitions. I can't view the contents of the hard drive to delete stuff.

View 6 Replies View Related

Programming :: Kernel API *get_super (struct Block_device *bdev) Producing Error With Fedora Core 5

Feb 2, 2011

I understand that block_device pointer *bd sholuld get initialized. Program should produce initialization error for *bd. Compiler is producing '->'. I am not understanding why?

[code]...

View 1 Replies View Related

Programming :: Get Process Statistics From Kernel And Return Them Buf?

Apr 7, 2011

I am want get next information: Get process statistics from kernel and return them buf as

Quote:

number of processes : ticks_user : ticks_system : ticks_interrupt : cpuseconds : procsizes : resident segment sizes I am find some this information in /proc/[pid]/stat, but there are is not data about ticks system, ticks_interrupt, cpusecond. Where I am can find it information???

I am write on C, better if it will file witch information, and not programm.

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

Programming :: Make A (user Space )process Pre Emptive / In 2.6 Kernel?

Dec 10, 2008

I am writing a program which i dont want the kernel scheduler to preempt before certain time duration. I am using the system call sched_get_priority_max to set the maximum priority. However it is not producing results.

View 3 Replies View Related

Red Hat / Fedora :: Identify A Process Id On A Cpu Core?

Jun 11, 2010

To see if an application is using all the cores in a system, I wanted to identify which process is running on a core at a given time. Is there any way to get that information?

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

Server :: Possible To Run Process On 1 Core In UNIX?

Jan 24, 2011

I`m looking for solution. Is it possible to run process on 1 core in UNIX ? From time to time I must start some very CPU consuming process and unfortunately this process is running on all cores... so at this time working on PC is very hard.

View 3 Replies View Related

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 :: Child Process Does Not Core Dump

Jul 27, 2011

In my program, I fork() to get a child process. Because of some problem, child process terminates by a segmentation fault. Parent process is still running. I have compiled my code with -g option. I have done: ulimit -c unlimited. I am not getting core dump of the child process. How can I get the core dump of child process?

View 1 Replies View Related

Software :: Process Crashing With No Core File?

May 14, 2011

A process from some software I am running keeps crashing with seemingly no real pattern. I ahve tried using ddd/gdb to run the process in question but everytime it crashes no useful information is returned. I also tried getting a core file with the same result. It seems as though according to linux the program has exited normally.

This obviously points towards the process itself having a bug but there are other instances of the same program running on other machines in the network with no problems at all.

I have made comaprisons of hardware/drivers (lspci etc) installed on various machines and all are exactly the same as the machine in question so my question is (at long last): What else should I be looking for?

View 3 Replies View Related

Programming :: Allocate Memory To A Program Before Execution?

Jan 3, 2011

I went to an interview last week and there was this guy who asked a simple question that i have been trying to solve for a couple of days. I tried google but i just cant get the search keywords right. The result were just useless. Well, the question is : "How can we allocate a limited memory to a process before we start its execution" well, the question is related to an X11 system so may be some flags must be set to limit its memory.

View 9 Replies View Related

Programming :: Malloc Fails To Allocate Memory

May 7, 2011

I am developing a code where I need to store the planes of an object in a tree & also i need to store it in a list for further processing ... when I try to allocate using malloc the memory allocation when i checked this in internet , I came to know that it may because the memory that I am trying to allocate may be more than the size_t variable.

View 9 Replies View Related

General :: Unix Command That Allows To Know Which Process Is Running On Processor Core?

Mar 16, 2011

Unix command that allows to know which process is running on processor core?

View 2 Replies View Related

Programming :: How To Allocate Region Of Memories Which Similar VirtualAlloc?

May 21, 2011

I was looking for a method of allocating memories on Linux which similar VirtualAlloc on Windows.Requirements are:

1. Size of memories block to allocate is 2^16.
2. Address of memories block is larger than 0x0000ffff
3. Address of memories block must have last 16 bits are zero.

On Windows because lower limit of application address (lpMinimumApplicationAddress) we have (2) obvious right. From (1), (2) and system rules we also achieved (3).

View 2 Replies View Related

Programming :: Memory Allocate In Function And Call It By Reference For Array Structure?

Jul 2, 2011

I am writing a function(in C language in Linux) to initialize an array of a structure from a mysql table by calling a function by reference but I have a problem with call this function by reference . this is my program:PHP Code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

[code]...

View 4 Replies View Related

Programming :: Vuse The Capacity Feature To Allocate All Memory At Beginning Of Program?

Jan 7, 2010

I have a vector that I do not want to call new on during operation so I use the Capacity Feature to allocate all memory at beginning of program

Code:
struct chartype
{
public:
unsigned char value[MAXCHARTYPE_SIZE];
};

[Code].....

View 2 Replies View Related

Slackware :: Kernel Hang During Boot Process - Slack 13.1 Stable W/ Kernel 2.6.33.4-smp

Jun 20, 2010

I installed a fresh copy of Slackware 13.1 (stable) on one of my media servers and I am experiencing something strange.... When I power up the machine, I see the kernel booting, no errors, until it gets to the point where it says:

And then randomly freeze there.... Well the machine is not totally frozen because the cursor still blinks. But it will never continue... Like I said, this happens on a random basis... After a reset, it might go through or simply stall at the same spot.

I remember after installing Slack 13.1, I rebooted the machine but forgot to remove the DVD from the player, so the install routine started up, and froze at the same point when it was loading the kernel for the setup programs...

My mobo is a MSI k9N platinum.

I never had this problem before.... (well I never used 13.1 before). Since I got this machine, I used slack 12.2 and slack 13-current with success.

This problem makes the machine extremely unreliable because I intent to use it as a backup and media server, so chances I will WOL the machine and use it remotely... if that happens.

View 10 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

Ubuntu :: Which Kernel To Use W/ Intel Core 2 Duo

Aug 20, 2010

I've read that you can use specialized kernels for your hardware, and I was wondering if there's a kernel I can use for my Intel Core 2 duo. I read in a previous post about using a "smp" variant, but kinda wanted some confirmation. Here's CPU info:

Code:
processor : 0
vendor_id : GenuineIntel

[code]....

View 1 Replies View Related

OpenSUSE Hardware :: Missing I2c-core.ko In 11.3 X86-64 (kernel 2.6.36)?

Nov 13, 2010

I was bugging around with my nvidia driver and while reading README.txt I saw the following:

"NVIDIA has noted that in some distibutions, i2c support is enabled. However, the Linux kernel module i2c-core.o (2.4) or i2c-core.ko (2.6), which provides the export infrastructure, was not shipped. In this case, you will need to build the i2c support module. For directions on how to build and install your kernel's i2c support, refer to your distribution's documentation for configuring, building, and installing the kernel and associated modules."

So I checked if I have i2c-core.ko and I saw that it is not present as a built module, but only as a source code. So, my question is, is there any reason that the module is not shipped with openSUSE 11.3 x86_64 (I use the kernel HEAD repository)? Actually, does it make sense to use this module if I want to monitor the temperature of my GPU with sensors? How can I compile only that module and install it?

View 4 Replies View Related

Ubuntu Servers :: Kernel And Core System Same As In Desktop 9.10?

Mar 18, 2010

Is the kernel and core system same in server and desktop 9.10? How do I update/upgrade server similar to what update manager does in desktop?

View 9 Replies View Related

Debian Installation :: Kernel Failure After Lenny Install (on Core I7 870)?

Jan 5, 2011

I just installed the lenny (amd64) on my new core i7 870 computer (with netinst), but the kernel failure message appeared everytime I booted into gnome. I don't know how to solve this problem. Sorry I don't have much experience with installing linux, though I have been its user for a few years.

View 4 Replies View Related

Programming :: Showing Process Id But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh

Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')

[code]...

View 14 Replies View Related

Fedora :: Where To Find Vmlinux File Corresponding To Current Running Core 10 Kernel

Aug 19, 2009

Where can I find the vmlinux file corresponding to my current running fedora core 10 kernel? I find only vmlinuz file in /boot

View 5 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code]....

View 1 Replies View Related







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