General :: Write Cpu Affinity Code To Map 8 Nodes To 8-cores Computer?
Jan 24, 2011
I 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...
View 3 Replies
ADVERTISEMENT
Mar 18, 2011
I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.
View 1 Replies
View Related
Apr 25, 2010
I try to write a code that allows ns to simulate the operation of the leach protocol in a network but I can not find documentation that would allow me to do that. how should be the configuration of nodes and the base.
View 1 Replies
View Related
Feb 9, 2010
how to write secure code for bash scripts in general? Strangely I didn't found anything in google and in the forum so far. If someone here is willing to review a bash script for me (about 600 lines).
View 6 Replies
View Related
Aug 3, 2010
i need to write a c code to ping IP addresses which are read from a text file and need to log the response time in another text file.
View 4 Replies
View Related
Apr 18, 2011
I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.
View 3 Replies
View Related
Apr 30, 2011
i need to make a to-do list for my project, everything is fine so far. but i really dont have a clue on writtiing this part: we need to write a programme that takes input from a text file then either encrypt or decrpyt it. according to the ASCII code of this charecters the user should give us his/her own keyword then the program will save the output in a new file .
[code]....
View 4 Replies
View Related
Jan 7, 2010
I have source code that plays video stream, and can open a remote video file if provided with a URL. But I have a problem getting video from ...... the URLs I get look like:
[URL]
and my code expects something like [URL] I need to modify the code, such that it will find the actual file.
View 1 Replies
View Related
Jan 11, 2011
How do you write a program that is independent of the UI (the functionality is a library, and you have, for example, CLI and GUI interfaces as separate apps). The problem I have is how to report status and prompt the user from within UI-independent code? I could split it into parts that do not require any user interaction, but then most of the functionality will be in the UI, not the backend.
View 10 Replies
View Related
Jan 20, 2011
Interpreting the output of /etc/proc/cpuinfo.
This is a Linux Box.
Here is the output and I need to know how many CPUs we have and how many cores per CPU.
View 5 Replies
View Related
Nov 14, 2010
I'm a noob in Ubuntu. I need the program which will help me to learn different ubuntu commands. I often forget them and after reinstall I don't want to search them in Google. Now I write them in the standard text editor and my code looks like this:
Restore MBR:
Delete GRUB (fixmbr)
Ubuntu terminal then:
sudo apt-get install ms-sys
sudo fdisk -l
[Code]...
View 2 Replies
View Related
Jun 19, 2010
I'd like to write a Makefile for my CUDA/C++ code but I didn't know how things work with CUDA, I mean there is a nvcc compiler but I don't know what I've got to do with this.
Do I have to firstly run nvcc and then g++ or only nvcc to compile my CUDA/C++ code ? I found nothing on the web explaining such basic things .
View 1 Replies
View Related
Apr 28, 2011
I am writing some code in matlab and I would like to do some reading of how to write cleaner code and how to name variables and write comments. One more questions. Let's say that I find for example a file that has really nice structured comments. For example specific format commenting function inputs, outputs author code. Can afterwards copy and paste and use someone's comments format or this is might some copyright problem?
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
Apr 1, 2010
I am using the standalone k10temp temperature sensor but it doesn't give the actual temperature of the cpu, just some "bogus" temp value that isn't very useful.Does anyone know how you can calculate the real temperature from this reading?
View 3 Replies
View Related
Oct 22, 2010
How to set the anchor node in NS2? How to define the channel propagation model as Log Normal Shadowing instead of two ray ground reflection model in NS2?
View 2 Replies
View Related
Jul 26, 2011
Many commands in Mathematica 8 (Integrate, Simplify, etc.) seem to only be using a single core on my system. Is there any way I can change the affinity so that it utilizes all cores for computations?
View 3 Replies
View Related
Feb 17, 2011
I have a four-cores machine (core1,core2, core3, core4 ). I want to test the communication or latency between two cores (for example, core1 and core2; core3 and core4). Does anyone know how to write a code to test it under linux operating system?
View 1 Replies
View Related
Feb 5, 2010
i want to add keys to the sensor nodes. Hence i want to know whether there is any parameter for key storage in senor nodes
View 1 Replies
View Related
Jan 21, 2011
I'm trying to write some code that involves creating a function to return a vector iterator.I'm not sure what is wrong.
Code:
template <typename T> class VectorTemplate
{
[code]....
View 4 Replies
View Related
Mar 10, 2010
I have two Web server (RHEL 5.3) as cluster. i want to get a certificate for website. do i need to get two certificates for a website?
View 2 Replies
View Related
Jan 17, 2011
I am new to the forum and new to Linux.
I am trying to explore if Linux can be run on a multicore platform when the max frequency of one the cores is less than the others.
please give me some pointers or let me know if you have tried such HW configuration.
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
Mar 12, 2010
A substantial proportion of the packages on my computer (yum list installed) are labelled as coming from the unstable rawhide repository. The rawhide repository is not currently enabled and never has been enabled as far as I can recall. How has this situation arisen and what can I do to ensure that packages are only installed from relatively stable repositories?
View 4 Replies
View Related
Feb 7, 2010
I turned on my Dell netbook, but as it was booting (before login page) my cat stepped on the keyboard and totally messed everything up. The laptop doesn't work anymore, and I get a strange page with code on it when I turn it on, this is what it looks like (screen pic attached). Please help! what can i do?
View 2 Replies
View Related
Dec 18, 2009
I 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...
View 1 Replies
View Related
Apr 15, 2010
I'm a starter here in linux, I have written a driver code and in that, I register my character devices by passing 0 for the major number.
To set up I used to use mknod command from terminal to create node,
Is there any method to create node dynamically from driver code during initialization and delete them at cleanup time?
View 1 Replies
View Related
Oct 28, 2009
Does 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 Related
Apr 29, 2010
I 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 Related
Feb 20, 2010
I 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 Replies
View Related