nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Utilizing multiple cores in Linux/mono

This is a discussion on Utilizing multiple cores in Linux/mono within the Coding in General forums, part of the Development/Scripting category; Hi I don't know if this question is more coding or hardware related, but here goes. I am coding an ...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Linux answers from nixCraft.


Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-12-2008, 01:20 PM
Junior Member
User
 
Join Date: Dec 2008
Location: Odense, Denmark
OS: openSUSE
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
GreyFollower is on a distinguished road
Default Utilizing multiple cores in Linux/mono

Hi

I don't know if this question is more coding or hardware related, but here goes.

I am coding an Genetic Algorithm for my master thesis, and I'm using .NET on my windows laptop, and it seems to work fine. My problem is when I'm running it on my linux server using Mono. It is an Quad Core Intel Xeon, but it just uses 100% of 1 of the cores, and none of the other cores. My question is, is this related to Mono or is there any configurations for Linux that I need to enable to be able to run a process on several cores? Could just be poor thread-programming, I use the ThreadPool class and it seems to work fine under windows on my DualCore laptop.

I'm running openSUSE 11.0.

/Grey
Reply With Quote
  #2 (permalink)  
Old 24-12-2008, 07:16 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You can try to set affinity
Linux Setting processor affinity for a certain task or process
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
LINUX file permissions to multiple groups Raj K Yadav Linux software 1 11-09-2008 08:25 PM
useradd on multiple servers pinoyskull Shell scripting 4 11-07-2008 04:22 PM
Command to find which process is utilizing max number of resources in Red hat Linux Santosh Sharma Linux software 0 19-01-2008 03:12 PM
Add multiple users to a group chuckbeattie Linux software 2 02-11-2007 11:04 PM
Setup multiple LUNs on Red Hat Enterprise Linux 4 raj Linux hardware 2 03-01-2007 08:02 AM


All times are GMT +5.5. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38