mkifs

How do you pass options to procnto-smp in the build file?

“Todd Meade” <tmeade@telus.net> wrote in message
news:abkcf6$73p$1@inn.qnx.com

How do you pass options to procnto-smp in the build file?

I’m not sure I understand the question.

If you want to set procnto-smp -v flag for example you
would edit the build file add -v right after procnto-smp .

If you mean to pass option through mkifs I don’t think
that’s possible.


If you want to set procnto-smp -v flag for example you
would edit the build file add -v right after procnto-smp .

Thanks, that’s what I was asking. Just wasn’t sure when I did that it had
any effect. My dual CPU box is running very hot under QNX. From what I
could gather from the docs, the -h flag should be even worse (don’t halt CPU
when idle), but it had very little effect. Hence, I wasn’t sure it was a
simple to modify the build file as above.

Todd Meade wrote:

Thanks, that’s what I was asking. Just wasn’t sure when I did that it
is logical > :slight_smile:

My box runs at 35C under Linux, even under heavy load.
Under QNX it is running at 55C when idle, and over 60C when busy.
Must be all that monolithic kernel contention under Linux > :slight_smile:

My Dual Athlon runs at 50C idle under QNX, after much thermal
rehabilitation (have no idea what it does under any other OS). This
could possibly be normal for Athlons, however, it does seem a little hot
(given the honking coolers I have on those puppies).

btw: I realize it’s a joke, but regardless of the amount of kernel
contention, an idle system should be an idle system; if Linux were
spending more time doing useless overhead, then it should run hotter
not cooler.

Rennie

“Todd Meade” <tmeade@telus.net> wrote in message
news:abmq69$rgu$1@inn.qnx.com

If you want to set procnto-smp -v flag for example you
would edit the build file add -v right after procnto-smp .

Thanks, that’s what I was asking. Just wasn’t sure when I did that it had
any effect. My dual CPU box is running very hot under QNX.

That’s odd cause my SMP runs 15C colder idle when compre
to full load.


From what I
could gather from the docs, the -h flag should be even worse (don’t halt
CPU
when idle), but it had very little effect. Hence, I wasn’t sure it was a
simple to modify the build file as above.

Mario Charest wrote:

“Bill Caroselli (Q-TPS)” <> QTPS@EarthLink.net> > wrote in message
news:abouh9$g8n$> 1@inn.qnx.com> …

Is there a “semi” standard function for querying the CPU temp?

Or is everyone just writing their own asm instructions?


It’s a chipset feature for AMD CPU. Intel CPU have onboard sensor
but I beleive you still need a chipset to access the value, not sure

Actually (I know way more about this than I really wanted to), what is
a chipset feature is a SMBus controller. The chip that does the actual
measurement varies, although Winbond 837xx chips seem to be very
prevalent. Intel chipsets have an SMBus controller on them also.

Rennie

Todd Meade wrote:

How do you set the fan speed, some bios setting I haven’t found? Do you
have a program to read the CPU temperature from the chipset under QNX? I
haven’t looked into porting lmsensors myself. I’ve been rebooting to bios
to get temperatures (or wait for my bios alarm to beep (used to be at 60C,
had to move it to 70C to get it to stop beeping).

If you feel like taking a crack at it, I have it ported (for Intel PIIX4
chipset, and Winbond 83781D). It looks like it works, unfortunately,
while I have a PIIX4 chipset, and a Winbond 83781D, my 83781D is mapped
into ISA space only, so I had to write another driver for it (since,
in my port of lmsensors, I canned the whole ISA thing to make it
simpler, and because all of the new stuff going forward should be SMBus
anyway, and writing a ISA driver is - by itself - brain dead simple -
for instance I wrote a resmgr and a GUI utility under Photon for my
current board in a couple of hours). The SMBus stuff is way more
complicated, and piggybacking the ISA code in the already complicated
SMBus stuff just makes it more complicated.

Rennie

Thanks, that’s what I was asking. Just wasn’t sure when I did that it
had
any effect. My dual CPU box is running very hot under QNX.

That’s odd cause my SMP runs 15C colder idle when compre
to full load.

Which is logical :slight_smile:

My box runs at 35C under Linux, even under heavy load.
Under QNX it is running at 55C when idle, and over 60C when busy.
Must be all that monolithic kernel contention under Linux :slight_smile:

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which has a
number of hardware issues (voltage regulators etc) with grief that is well
documented on the net. So, I don’t mean to slag QNX, just trying everything
I can to stablize my flaky hardware.

It would be nice if ‘mkifs’ could pass a macro from the command line to an
argument inside of the build script.


“Mario Charest” <goto@nothingness.com> wrote in message
news:abkh1v$9oe$1@inn.qnx.com

“Todd Meade” <> tmeade@telus.net> > wrote in message
news:abkcf6$73p$> 1@inn.qnx.com> …
How do you pass options to procnto-smp in the build file?

I’m not sure I understand the question.

If you want to set procnto-smp -v flag for example you
would edit the build file add -v right after procnto-smp .

If you mean to pass option through mkifs I don’t think
that’s possible.


\

Is there a “semi” standard function for querying the CPU temp?

Or is everyone just writing their own asm instructions?


“Todd Meade” <tmeade@telus.net> wrote in message
news:aboret$e65$1@inn.qnx.com

Thanks, that’s what I was asking. Just wasn’t sure when I did that it
had
any effect. My dual CPU box is running very hot under QNX.

That’s odd cause my SMP runs 15C colder idle when compre
to full load.

Which is logical > :slight_smile:

My box runs at 35C under Linux, even under heavy load.
Under QNX it is running at 55C when idle, and over 60C when busy.
Must be all that monolithic kernel contention under Linux > :slight_smile:

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which has
a
number of hardware issues (voltage regulators etc) with grief that is well
documented on the net. So, I don’t mean to slag QNX, just trying
everything
I can to stablize my flaky hardware.

“Todd Meade” <tmeade@telus.net> wrote in message
news:aboret$e65$1@inn.qnx.com

Thanks, that’s what I was asking. Just wasn’t sure when I did that it
had
any effect. My dual CPU box is running very hot under QNX.

That’s odd cause my SMP runs 15C colder idle when compre
to full load.

Which is logical > :slight_smile:

My box runs at 35C under Linux, even under heavy load.
Under QNX it is running at 55C when idle, and over 60C when busy.
Must be all that monolithic kernel contention under Linux > :slight_smile:

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which has
a
number of hardware issues (voltage regulators etc) with grief that is well
documented on the net. So, I don’t mean to slag QNX, just trying
everything
I can to stablize my flaky hardware.

That’s exactly what I have, and the two Celerons are running at 580Mzh
and with current are running at 41C with fan for each set at about 1/3 of
full speed.

I can lower them to 32C if fan are full speed but i prefer cutting down on
noise :wink:

  • Mario



“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:abouh9$g8n$1@inn.qnx.com

Is there a “semi” standard function for querying the CPU temp?

Or is everyone just writing their own asm instructions?

It’s a chipset feature for AMD CPU. Intel CPU have onboard sensor
but I beleive you still need a chipset to access the value, not sure

“Todd Meade” <> tmeade@telus.net> > wrote in message
news:aboret$e65$> 1@inn.qnx.com> …
Thanks, that’s what I was asking. Just wasn’t sure when I did that
it
had
any effect. My dual CPU box is running very hot under QNX.

That’s odd cause my SMP runs 15C colder idle when compre
to full load.

Which is logical > :slight_smile:

My box runs at 35C under Linux, even under heavy load.
Under QNX it is running at 55C when idle, and over 60C when busy.
Must be all that monolithic kernel contention under Linux > :slight_smile:

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which
has
a
number of hardware issues (voltage regulators etc) with grief that is
well
documented on the net. So, I don’t mean to slag QNX, just trying
everything
I can to stablize my flaky hardware.
\

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which
has
a
number of hardware issues (voltage regulators etc) with grief that is
well
documented on the net. So, I don’t mean to slag QNX, just trying
everything
I can to stablize my flaky hardware.

That’s exactly what I have, and the two Celerons are running at 580Mzh
and with current are running at 41C with fan for each set at about 1/3 of
full speed.

I can lower them to 32C if fan are full speed but i prefer cutting down on
noise > :wink:

  • Mario

How do you set the fan speed, some bios setting I haven’t found? Do you
have a program to read the CPU temperature from the chipset under QNX? I
haven’t looked into porting lmsensors myself. I’ve been rebooting to bios
to get temperatures (or wait for my bios alarm to beep (used to be at 60C,
had to move it to 70C to get it to stop beeping).

“Rennie Allen” <rallen@csical.com> wrote in message
news:3CDFAF33.2060103@csical.com

Mario Charest wrote:
“Bill Caroselli (Q-TPS)” <> QTPS@EarthLink.net> > wrote in message
news:abouh9$g8n$> 1@inn.qnx.com> …

Is there a “semi” standard function for querying the CPU temp?

Or is everyone just writing their own asm instructions?


It’s a chipset feature for AMD CPU. Intel CPU have onboard sensor
but I beleive you still need a chipset to access the value, not sure

Actually (I know way more about this than I really wanted to), what is
a chipset feature is a SMBus controller.

Nto necessarly on some chipset the sensor/fan/temperator chip is also
directly accessible via io port (no need to use SMBus controler).
The chipset only provide address decoding.

The chip that does the actual
measurement varies, although Winbond 837xx chips seem to be very
prevalent. Intel chipsets have an SMBus controller on them also.

Rennie

“Todd Meade” <tmeade@telus.net> wrote in message
news:abpf24$re6$1@inn.qnx.com

My hardware is an ugly hack; an ABIT BP6 running dual Celeron’s, which
has
a
number of hardware issues (voltage regulators etc) with grief that is
well
documented on the net. So, I don’t mean to slag QNX, just trying
everything
I can to stablize my flaky hardware.

That’s exactly what I have, and the two Celerons are running at 580Mzh
and with current are running at 41C with fan for each set at about 1/3
of
full speed.

I can lower them to 32C if fan are full speed but i prefer cutting down
on
noise > :wink:

  • Mario

How do you set the fan speed, some bios setting I haven’t found? Do you
have a program to read the CPU temperature from the chipset under QNX? I
haven’t looked into porting lmsensors myself. I’ve been rebooting to bios
to get temperatures (or wait for my bios alarm to beep (used to be at 60C,
had to move it to 70C to get it to stop beeping).

Here is was I’m using. My first idea was to control the fan speed
automaticly
but it turn out to be more complited then i first anticipated…



begin 666 fan.c
M(VEN8VQU9&4@/’-T9&EO+F@^“B-I;F-L=61E(#QS=&1L:6(N:#X*(VEN8VQU
M9&4@/’-T<FEN9RYH/@H*(VEN8VQU9&4@/&AW+VEN;W5T+F@^“B-I;F-L=61E
M(#QS>7,O;F5U=’)I;F\N:#X*“FEN=”!M86EN*”!I;G0@87)G8RP@8VAA<B J
M87)G=EM=(“D@>PH*:6YT(’-P965D.PH*“6EF(”@@87)G8R A/2 R(“D@>PH)
M"7!R:6YT9B@B=7-A9V4Z(&9A;B <W!E960@,“TR-34^(BD[”@D)97AI=“A%
M6$E47T9!24Q54D4I.PH)?0H*“7-P965D(#T@<W1R=&]L(”@@87)G=ELQ72P@
M3E5,3” L(# I.PH):68@"!S<&5E9" (# @?‘P@<W!E960@/B R-34@2![
M"@D)<’)I;G1F
"));G9A;&ED(’-P965D("@P+3(U-2E<;B(I.PH)“65X:70H
M($58251?1D%)3%5212 I.PH)?0H)”@E4:’)E861#=&PH7TY43U]40U1,7TE/
M+" P
2 [”@H);W5T.”@@,’@R.34L(#!X-&4@3L"6]U=#@H(#!X,CDV+” P
M(“D[”@EO=70X*" P>#(Y-2P@,’@U82 I.PH);W5T."@@,’@R.38L(’-P965D
M(“D[”@EO=70X*" P>#(Y-2P@,’@U8B I.PH);W5T."@@,’@R.38L(’-P965D
6(“D[”@H)"@ER971U<FX@,#L*“GT*”@``
`
end

begin 666 temp.c
M(VEN8VQU9&4@/’-T9&EO+F@^“B-I;F-L=61E(#QH=R]I;F]U=“YH/@HC:6YC
M;'5D92 <WES+VYE=71R:6YO+F@^”@II;G0@;6%I;B@@:6YT(&%R9V,L(&-H
M87(@F%R9W9;72 I('L"FEN=”!P;W)T.PH*“51H<F5A9$-T;“A?3E1/7U1#
M5$Q?24\L(# I(#L*“B\O(“TM+2!R96%D(‘1E;7!E<F%T=7)E(’-E;G-O<B Q
M”@H);W5T.”@@,’@R.34L(#!X,C<@3L"7!R:6YT9B@B4V5N<V]R(#$@)61#
M7&XB+”!I;C@@" P>#(Y-B I(“D[”@HO+R M+2T@<F5A9"!T96UP97)A='5R
M92!S96YS;W(@,@H
"6]U=#@H(#!X,CDU+” P>#1E(“D[”@EO=70X*" P>#(Y
M-BP@,2 I.PH);W5T."@@,’@R.34L(#!X-3 @3L"7!R:6YT9B@B4V5N<V]R
M(#(@)61#7&XB+"!I;C@@" P>#(Y-B I(“D[”@H);W5T."@@,’@R.34L(#!X
M-&4@3L"6]U=#@H(#!X,CDV+" R(“D[”@EO=70X
" P>#(Y-2P@,’@U," I
M.PH)<’)I;G1F*")396YS;W(@,R E9$-<;B(L(&EN." H(#!X,CDV(“D@3L
1”@H)<F5T=7)N(# ["@I]"@H
end

Much thanks, works like a charm… didn’t know I could set may fan speeds,
cool!

“Mario Charest” <goto@nothingness.com> wrote in message
news:abpml4$34p$1@inn.qnx.com

Here is was I’m using. My first idea was to control the fan speed
automaticly
but it turn out to be more complited then i first anticipated…

I guess it’s not a text book PID loop to couple the temperature readings to
the fan speed? Ok control theory geeks, time for a competition :slight_smile:

“Todd Meade” <tmeade@telus.net> wrote in message
news:abq28s$as8$1@inn.qnx.com

Much thanks, works like a charm… didn’t know I could set may fan speeds,
cool!

“Mario Charest” <> goto@nothingness.com> > wrote in message
news:abpml4$34p$> 1@inn.qnx.com> …
Here is was I’m using. My first idea was to control the fan speed
automaticly
but it turn out to be more complited then i first anticipated…

I guess it’s not a text book PID loop to couple the temperature readings
to
the fan speed? Ok control theory geeks, time for a competition > :slight_smile:

That’s what I wanted to do, but one problem is temperature sensor
resolution is only ±.5C. Also there is a 30 seconds reaction time between
modifying fan speed and seeing change in temperature. Not simple.
I had a look at fuzzy logic (which apparently is more suited to this),
but gave up as was kind of getting out of hand…


Mario Charest wrote:


Nto necessarly on some chipset the sensor/fan/temperator chip is also
directly accessible via io port (no need to use SMBus controler).
The chipset only provide address decoding.

This is not a function of the chipset, but the measurement chip (for
instance the Winbond can be placed in ISA address space, in this case
the chipset does nothing for you).

I have attached a small resmgr and photon app that handle a W83781D
mapped into ISA space (healthmgr.tar.gz is the resource mgr,
healthmonitor.tar.gz is the photon client app).

On one machine I have (the other is SMBus based) starting the isa based
resmgr like this gives me read access - I haven’t implemented write yet,
and probably won’t since I am interested only in a general solution that
will work with newer machines going forward).

isahealth -f1,cpufan -t1,cputemp -t2,ambient

SMbus is way more complicated to implement than ISA is.

Rennie

Mario Charest <goto@nothingness.com> wrote:

I guess it’s not a text book PID loop to couple the temperature readings
to
the fan speed? Ok control theory geeks, time for a competition > :slight_smile:

That’s what I wanted to do, but one problem is temperature sensor
resolution is only ±.5C. Also there is a 30 seconds reaction time between
modifying fan speed and seeing change in temperature. Not simple.
I had a look at fuzzy logic (which apparently is more suited to this),
but gave up as was kind of getting out of hand…

Yup. A feedback loop with delay in response… them’s a bit nasty
to model and handle. Heck, the fuzzy logic in my brain has problems
with this sort of thing when trying to get a shower to the right
temperature… trying to do it in software… ugh.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

One last foot note to the temperature issues on my ABIT BP6 dual Celeron
(366Mhz). I grabbed a newer procnto-smp from the QNX website and I don’t
see my temps go above 45C now, down from 55C with RTP 6.1 ISO version.
Either that, or the weather has cooled down here in Vancouver since last
week :wink:

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:abtsfp$ihc$1@nntp.qnx.com

Mario Charest <> goto@nothingness.com> > wrote:


I guess it’s not a text book PID loop to couple the temperature
readings
to
the fan speed? Ok control theory geeks, time for a competition > :slight_smile:

That’s what I wanted to do, but one problem is temperature sensor
resolution is only ±.5C. Also there is a 30 seconds reaction time
between
modifying fan speed and seeing change in temperature. Not simple.
I had a look at fuzzy logic (which apparently is more suited to this),
but gave up as was kind of getting out of hand…

Yup. A feedback loop with delay in response… them’s a bit nasty
to model and handle. Heck, the fuzzy logic in my brain has problems
with this sort of thing when trying to get a shower to the right
temperature… trying to do it in software… ugh.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.