General :: How To Identify Current CPU In A Parallel Machine
Sep 1, 2010
I do not know much about parallel computing, but I do have access to a few cpus.I am trying to write a program compatible for multiple cpus, but to do it, I need to ensure unique directories. I have figured out that the time of creation, process id, and cpu id form a unique combination I can use to name files (up to the degree of accuracy of the internal timer).Anyway, I am using perl. I know how to find the process id and I know I can get the time pretty easily, but as I said, I do not know much about hardware or parallel computing. All I need is a way to identify each cpu in the system and I am set for half of my program (the other half is significantly more straightforward and is mainly about text parsing.)
So anyway using terminal, perl, etc., I could access this identification? Or could someone at least tell me the name of what I am looking for? I have seen the words "ip" "MAC" "hostid" and a bunch of other "id" things come up in my googling, but I really cannot figure out which is the one relevent to me
Is there a way to identify the machine (I believe it's an HP), the information on the type and size of drives it uses, and what version of RAID it has through command line?
Is there any sure-fire way to identify whether the current Ubuntu system is running in Live mode or not? I want to distinguish between Live mode and running from installed HD, and do some processing in boot up script. FYI, in grml, the /etc/grml_cd file only exit in Live mode file system; no such file if running from installed HD.
I am using the Terminal. I would like to know how do I put the current date and time on my machine and the date from a certain URL that has .php extension into a file.
I need to run Windows XP on a virtual machine using my 64 bit Slackware -current box. Does anyone have a procedure for installing the non-free version of Virtualbox (USB support is a necessity), or failing that can anyone recommend another solution? The only virtualization software I've ever run has been Virtualbox.
I've been playing around with slackware a little bit in the past few weeks and it's been interesting. I do find, however, that people like to keep up to date with the -current version, and sadly I can't do that so easily because I live in the middle of nowhere and my only internet is at work. So, I'm looking for a way to download the -current slackware packages and make it into a slackware installation disc (DVD), but I have no idea where to begin - quite literally, I don't know where to find theofficial slackware -current files. I guess after that I have to figure out how to make it into a CD, but that's ok for now
If i had a clean install of the same version of Ubuntu i'm currently running (10.04), could i copy my current home folder over to a new machine and replace that home folder with current one?
Are there any identifiers on an HDD that can be either seen physically on a "sticker" on the HDD, and the same number/identifier could be read with software solutions?
I mean if I see with e.g.: S.M.A.R.T. that an HDD (in RAID) is failing, then I give out the command:
SOMEMAGIC
then I get an OUTPUT, e.g.: 9835923759237489
and then are ther any stickers on the HDD that has a label: 9835923759237489 ? so the hdd that has to be changed could be identified.
I have a Red Hat Linux system that does not boot. The boot partition is damaged and files cannot be recovered.
I would like to know how to find out which version of Red Hat was installed from the program/data partition which is undamaged and accessible from Fedora Live CD. I assume this is available in a configuration file somewhere.
I have a shell script to refresh some databases. Currently I open 5 sessions and to execute the five scripts.
Today, as test, I tried to see if I could run two refreshes simultaneously from one session using the '&':
. /refresh.ksh db1 & . /refresh.ksh db2
The first one ran and the second one started only after the first one was finished. Could it be that the script refresh.ksh contains many commands and those are not pushed to the background? If so, what's the best approach to getting 5 db's refresh simultanously from on session?
While converting some images using ImageMagick, I noticed a somewhat strange effect. Using xargs was significantly slower than a standard for loop. Since xargs limited to a single process should act like a for loop, I tested that, and found it to be about the same.
Thus, we have this demonstration.
Quad core (AMD Athalon X4, 2.6GHz) Working entirely on a tempfs (16g ram total; no swap) No other major loads
I would like to add a driver to /dev which can light the LEDS using the parallel port. Where I should start from. I am trying to learn device driver programming, which is quite difficult for me now.
I've got a fresh install of ubuntu 9.10 on a fresh disk and everything was going perfectly. I bought a Usb=>parallel cable to connect my old parallel port printer.When I try and print, sometimes it works and sometimes it doesn't. Sometimes the job will go to the print queue and then nothing happens, in this case if I unplug and replug the usb cable a couple of times it usually prints the document. Sometimes the job doesn't show up in the print queue at all and sometimes it prints the document with no problems.
Whenever I use lsusb, I never see the printer in the list of attached usb devices (even when the printer is printing!). Apart from root hubs, the only two devices ever listed with lsusb are my mouse and scanner.
I just 0 & 1'd a pen drive, and now I dont see it in 'blkid' output. Is there a way to know where the device is on the system, so that I can format it with a filesystem?
I want to turn to Ubuntu, but when I install it using Ubuntu CD, It is found that Ubuntu can not identify my netcard (Intel Pro 10/100), Can not identify by sound card, Even it can not identify my video card. Anyone has a simple introduction on how to install these hardware drivers?
I was trying out the parallel port communication on RHEL 6 but found it not working: #echo hello > /dev/parport0 write error :Invalid argument". #ll > "/dev/lp0" /dev/lp0:No such device or address
I have been trying out serial and parallel data communication on Fedora 13 Beta. I can easily see the list of serial ports through:
Code: setserial -g /dev/ttyS[0-3] And can also write some data through: Code: ll > /dev/ttyS0 But I am unable to see parallel ports I can see something like: Code: /dev/parport0 But when I try out: ll > /dev/parport0 It throws error.
I want to grep for $_POST['whatever']. I've done enough googling and trying different things (and failing) to where I felt it appropriate to post here. How do I identify the single quotes as literals? slashes don't seem to do it.
I need to replicate my Ubuntu laptop as a VirtualBox guest. To replicate in the guest the packages currently installed in my laptop, I plan to follow the recipe given here:[URL]What I need now is a way to identify all the packages that have customizations (e.g. changes to config files, etc.)What's the best way to do this? Can dpkg figure this information out and report it?
As we know in Linux both SATA and eSATA disks are enumerated on /dev/sd[x] path. Is there a way using which i can identify if the device is an internal SATA or eSATA?
I am trying to insert a .ko into my kernel and I am getting the 'invalid module format' error. But the kernel object is being generated from or is included in a binary which sets up and populates a driver path when run. How can I tell what architecture/target/anything that .ko is meant for?
I know that I can use the uname and /proc/cpuinfo to see my current info, but I am also not sure what I might need to do to get them to sync up. I am running on a minimal, cli-install of Ubuntu8.10 right now. It's freshly installed (onto a 2GB USB drive) & imaged, so bring on the drastic changes.