Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 5 May 2010 07:03, Matthew Macdonald-Wallace matt...@truthisfreedom.org.uk wrote: On Tue, 2010-05-04 at 20:53 +0100, LeeGroups wrote: Cpu11 : 4.5% us, 0.5% sy, 0.0% ni, 94.2% id, 0.5% wa, 0.0% hi, 0.3% si Now that's just showing off Alan... :) Heh, I didn't notice that before! Is that a Tri-Quad-Core machine Popey or is it some kind of weird bastardisation of VT/HyperThreading on a Dual-Quad system? M. I would guess it's a tri-core with hyperthreading. Neil. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 6 May 2010 11:41, Neil Greenwood neil.greenwood@gmail.com wrote: I would guess it's a tri-core with hyperthreading. 2x Six-Core AMD Opteron(tm) Processor 2425 HE :) Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On Thu, May 6, 2010 at 11:46 AM, Alan Pope a...@popey.com wrote: 2x Six-Core AMD Opteron(tm) Processor 2425 HE :) Cheers, Al. Hmmm.that's some serious processing powerthe CPU's in your machine cost more than my car!! and probably go faster ;) -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 6 May 2010 11:51, Paul Morgan-Roach roa...@roachy.net wrote: Hmmm.that's some serious processing powerthe CPU's in your machine cost more than my car!! and probably go faster ;) Sadly not mine. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On Tue, 2010-05-04 at 20:53 +0100, LeeGroups wrote: Cpu11 : 4.5% us, 0.5% sy, 0.0% ni, 94.2% id, 0.5% wa, 0.0% hi, 0.3% si Now that's just showing off Alan... :) Heh, I didn't notice that before! Is that a Tri-Quad-Core machine Popey or is it some kind of weird bastardisation of VT/HyperThreading on a Dual-Quad system? M. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 4 May 2010 14:05, Stuart Bird stuart.bi...@googlemail.com wrote: Basically I need to ensure that Ubuntu is multiprocessor aware and that it is making use of all the processors and/or cores when a program designed to use them all is run. I think that makes sense :) Easiest way to see if your system is mp aware is just run something like top in a terminal. The CPU line shows all CPUs activity aggregated like this:- top - 14:09:19 up 83 days, 1:07, 4 users, load average: 1.87, 1.89, 1.95 Tasks: 895 total, 4 running, 891 sleeping, 0 stopped, 0 zombie Cpu(s): 0.6% us, 0.5% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 131900740k total, 113857192k used, 18043548k free, 133156k buffers Swap: 33554424k total,8k used, 33554416k free, 94430544k cached Press 1 and it will split out each CPU... like this:- top - 14:09:39 up 83 days, 1:08, 4 users, load average: 1.77, 1.87, 1.94 Tasks: 895 total, 2 running, 893 sleeping, 0 stopped, 0 zombie Cpu0 : 0.6% us, 0.3% sy, 0.0% ni, 99.1% id, 0.0% wa, 0.0% hi, 0.0% si Cpu1 : 3.0% us, 0.6% sy, 0.0% ni, 96.2% id, 0.0% wa, 0.0% hi, 0.0% si Cpu2 : 5.6% us, 0.3% sy, 0.0% ni, 93.9% id, 0.0% wa, 0.0% hi, 0.1% si Cpu3 : 2.2% us, 1.6% sy, 0.0% ni, 95.9% id, 0.2% wa, 0.0% hi, 0.0% si Cpu4 : 0.8% us, 0.3% sy, 0.0% ni, 98.8% id, 0.1% wa, 0.0% hi, 0.0% si Cpu5 : 1.0% us, 0.3% sy, 0.0% ni, 98.6% id, 0.0% wa, 0.0% hi, 0.0% si Cpu6 : 10.8% us, 1.6% sy, 0.0% ni, 86.9% id, 0.0% wa, 0.1% hi, 0.6% si Cpu7 : 29.8% us, 2.0% sy, 0.0% ni, 67.4% id, 0.0% wa, 0.0% hi, 0.7% si Cpu8 : 36.0% us, 1.5% sy, 0.0% ni, 61.7% id, 0.1% wa, 0.0% hi, 0.8% si Cpu9 : 12.9% us, 0.6% sy, 0.0% ni, 86.1% id, 0.1% wa, 0.1% hi, 0.3% si Cpu10 : 0.9% us, 0.3% sy, 0.0% ni, 98.3% id, 0.3% wa, 0.0% hi, 0.1% si Cpu11 : 4.5% us, 0.5% sy, 0.0% ni, 94.2% id, 0.5% wa, 0.0% hi, 0.3% si Mem: 131900740k total, 113859240k used, 18041500k free, 133172k buffers Swap: 33554424k total,8k used, 33554416k free, 94431560k cached If you see multiple lines for CPU then chances are you're good to go. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On Tue, 4 May 2010 14:05:48 +0100, Stuart Bird stuart.bi...@googlemail.com wrote: Hi All Does anyone know how I can check the CFLAGS settings in Ubuntu (10.4 x64). I have a need to run an application that depends on these settings to optimise speed but have found that Ubuntu has no make.conf file which is where I would normally expect to find/tweak these settings. There is no make.conf as each package will define what it needs separately. There are gcc defaults depending on the version, but they aren't accessible to easily change. I don't see why you need to change global settings to affect one application? Thanks, James -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 04/05/10 14:05, Stuart Bird wrote: Hi All Does anyone know how I can check the CFLAGS settings in Ubuntu (10.4 x64). I have a need to run an application that depends on these settings to optimise speed but have found that Ubuntu has no make.conf file which is where I would normally expect to find/tweak these settings. CFLAGS is an environment variable that is fed to the [gcc] compiler at build time: http://en.wikipedia.org/wiki/CFLAGS. It isn't really a setting as such. And if you want to change it you will need to recompile whatever the app or library is that needs it to be different. I'm not sure what the Ubuntu packagers use normally, nor if you can read how it was set after a binary has been compiled, but the CFLAGS var *can* be different for each and every package built. HTH Al -- The Open Learning Centre http://www.theopenlearningcentre.com -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
Quoting Stuart Bird stuart.bi...@googlemail.com: Hi All Does anyone know how I can check the CFLAGS settings in Ubuntu (10.4 x64). I have a need to run an application that depends on these settings to optimise speed but have found that Ubuntu has no make.conf file which is where I would normally expect to find/tweak these settings. Gentoo user eh? We'll have none of that compile from source nonsense around here laddy, it's a binary distro don't-cha-know... :P [0] Basically I need to ensure that Ubuntu is multiprocessor aware and that it is making use of all the processors and/or cores when a program designed to use them all is run. As far as I can tell (running Lucid x86_64 on macbook pro 4.1 at the moment) all apps that require it are multi-processor aware. If you want to recompile, just export the CFLAGS variable before you recompile the code. Kind regards, Matt [0] I've used Gentoo for years, it's still a favourite of mine for servers, I just got fed up with a desktop taking 14 days to build! -- Matthew Macdonald-Wallace matt...@truthisfreedom.org.uk http://www.truthisfreedom.org.uk/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
On 4 May 2010 14:29, Matthew Macdonald-Wallace matt...@truthisfreedom.org.uk wrote: Quoting Stuart Bird stuart.bi...@googlemail.com: Hi All Does anyone know how I can check the CFLAGS settings in Ubuntu (10.4 x64). I have a need to run an application that depends on these settings to optimise speed but have found that Ubuntu has no make.conf file which is where I would normally expect to find/tweak these settings. Gentoo user eh? We'll have none of that compile from source nonsense around here laddy, it's a binary distro don't-cha-know... :P [0] Basically I need to ensure that Ubuntu is multiprocessor aware and that it is making use of all the processors and/or cores when a program designed to use them all is run. As far as I can tell (running Lucid x86_64 on macbook pro 4.1 at the moment) all apps that require it are multi-processor aware. If you want to recompile, just export the CFLAGS variable before you recompile the code. Kind regards, Matt [0] I've used Gentoo for years, it's still a favourite of mine for servers, I just got fed up with a desktop taking 14 days to build! -- Matthew Macdonald-Wallace matt...@truthisfreedom.org.uk http://www.truthisfreedom.org.uk/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Thanks to all that posted a reply. The issue is now sorted as a result of me re-reading the man pages properly this time and noticing that you can set the required flag as an option when you build the run command at the shell. So no need to mess with system wide settings for one application as someone pointed out. Interestingly the 15GiB file was processed seven minutes faster with the flag set than without so at least I know it works :) Lesson learnt: RTFM (thoroughly) Matthew I just got fed up with a desktop taking 14 days to build! I know what you mean. The phrase # emerge -uavDNt world still brings me out in a cold sweat :) I seem to remember a Ubentu or Genbuntu fork being talked about in the past but don't know if it ever got off the ground? Overall though, like you I appreciate the straightforward way that Ubuntu does things on the desktop. I am still in the process of testing it as a platform for my work (digital forensics) but it's looking good so far. Stu -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] CFLAGS Manipulation in Ubuntu
Cpu11 : 4.5% us, 0.5% sy, 0.0% ni, 94.2% id, 0.5% wa, 0.0% hi, 0.3% si Now that's just showing off Alan... :) Lee -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/