LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2003, 03:49 AM   #1
coxtonyj
LQ Newbie
 
Registered: Jul 2003
Location: UK
Distribution: Redhat 7.2, 9.0
Posts: 1

Rep: Reputation: 0
pthreads on dual Intel Xeon system


Hi, I have a system consisting of a dual 2.8GHz Xeon with 1Gb of RAM running RedHat 9.0 (in fact this is one node of a cluster, but I'm just trying to get things working on a single node for now). I have an application that creates and then holds in memory a large data table that takes up most of my 1Gb of RAM. I want to run this job on both of my processors, but I can't just fire off two processes because I'd run out of RAM and enter swap hell. So what I'd like to do is to create my table then fire off one thread on each processor, both of which are reading the same table (by the way, once my large data table is created it is completely read only).

Using the default version of pthreads that comes with RedHat 9 (how do I find out which version this is?) the threads fire off and start functioning correctly but both remain on the same processor. Is there a threads library that would enable me to run them on separate processors (or even make use of the hyperthreading capabilities of the Xeon)?

I guess my other option would be to use fork() and shared memory.

Thanks for reading, and thanks in advance for any help.

Tony
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
One virtual cpu missing (Dual Xeon system) muflon Linux - Hardware 3 08-03-2004 12:06 AM
Dual Xeon - Spread 99.9 to 2 Procs? astroboy5714 Linux - Hardware 4 11-05-2003 04:12 PM
Running Slack 9.0 on Intel Xeon or AMD Opteron tungsten Slackware 2 08-17-2003 03:15 PM
dual xeon c0c0deuz Linux - Hardware 1 08-09-2003 02:07 AM
Linux on Intel Xeon grub Linux - Hardware 4 04-11-2003 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration