Skip to contentSkip to conversation

PSCHED_CPU ?

LARTC raptor 3 participants 7 messages Sep 18, 2002 – Sep 19, 2002

lore
Share & tools
lore

raptor

author
#0 lore raw

hi,

Will it be a problem if my kernel is compiled with PSCHED_CPU, but for the success of the compilation of tcism I use PSCHED_JIFFES ?
-----------------------------------------------------------------
In file included from klink.c:19:
klib/include/net/pkt_sched.h:285:2: #error PSCHED_CLOCK_SOURCE=PSCHED_CPU is not supported on this arch.
In file included from trace.c:20:
klib/include/net/pkt_sched.h:285:2: #error PSCHED_CLOCK_SOURCE=PSCHED_CPU is not supported on this arch. make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/arh/compile/tcng/tcsim'
make: *** [all] Error 1

Thanx

raptor
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 2 lines · raptor

Will it be a problem if my kernel is compiled with PSCHED_CPU, but for the success of the compilation of tcism I use PSCHED_JIFFES ?

tcsim should just use PSCHED_JIFFIES, no matter what your kernel is configured to do.

Quite obviously, this doesn't seem to be the case on your system. Is this a i386 platform ? And which kernel and which version of tcng are you using ?

- Werner

Signature · 6 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to raptor
Quoted 1 line · raptor

]- i386, tcng-8u, Mandrake 2.4.19mdk-9

Does the attached patch help ? With it, setup.klib simply reverts include/net/pkt_sched.h back to using PSCHED_JIFFIES.

- Werner

Signature · 3 lines
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         [email protected] /
/_http://www.almesberger.net/____________________________________________/
setup.klib renamed from setup.klib.old +8 -1
@@ -100,7 +100,14 @@
    u16 mask); \
   trace_u32_offset(skb,n->handle,ptr-skb->nh.raw+n->sel.offoff,n->sel.offmask);\
   & }/'>cls_u32.c
-  
+
+#
+# De-Mandrakize net/pkt_sched.h
+#
+
+sed 's/\(#define PSCHED_CLOCK_SOURCE[^ -~]*PSCHED_\)CPU/\1JIFFIES/' \
+  <$KSRC/include/net/pkt_sched.h >include/net/pkt_sched.h
+
 ln -s $KSRC kernel
 
 #
#4 lore raw
In reply to raptor

The problem with PSCHED_CPU is that the time is derived by reading of TSC registry which is measure counter of the processor. TSC exists on Intel platform from the times of Pentium but sometimes cannot be used as a counter, for example with APM (advanced power management) turned on.

----- Original Message -----
From: "raptor" <[email protected]>
To: <[email protected]>
Sent: Wednesday, September 18, 2002 10:21 PM
Subject: [LARTC] [tcng] PSCHED_CPU ?

Quoted 3 lines

hi,

Will it be a problem if my kernel is compiled with PSCHED_CPU, but for the

success of the compilation of tcism I use PSCHED_JIFFES ?

Quoted 3 lines

-----------------------------------------------------------------
In file included from klink.c:19:
klib/include/net/pkt_sched.h:285:2: #error PSCHED_CLOCK_SOURCE=PSCHED_CPU

is not supported on this arch.

Quoted 2 lines

In file included from trace.c:20:
klib/include/net/pkt_sched.h:285:2: #error PSCHED_CLOCK_SOURCE=PSCHED_CPU

is not supported on this arch.

Quoted 10 lines

make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/arh/compile/tcng/tcsim'
make: *** [all] Error 1

Thanx

raptor
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

author
#5 lore raw
In reply to raptor

Vladimír Trebický <[email protected]> wrote:

|The problem with PSCHED_CPU is that the time is derived by reading of TSC
|registry which is measure counter of the processor. TSC exists on Intel
|platform from the times of Pentium but sometimes cannot be used as a
|counter, for example with APM (advanced power management) turned on.

]- that's good then 'cause I didn't compiled power-management into the kernel :") Do u know any other reason not to use PSCHED_CPU ?

In the past I have setup "HZ = 1000" when building QoS is it wise to do it if the only purpose of this computer is QoS+Firewall and of course it is powerfull enought 1.8GHz. And I don't expect it to exceed 1000 slow-qos-channels and handle not more than 1Mb/s most of the time.

raptor
PS.Sorry for the ignorance what is TSC-regitry and its use ? thanx..
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to raptor

In my opinion there is no reason not to use PSCHED_CPU except those around APM and architecture. If you don't want to use APM and do have Athlon use PSCHED_CPU.

----- Original Message -----
From: "raptor" <[email protected]>
To: "Vladimír Trebický" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, September 19, 2002 3:20 PM
Subject: Re: [LARTC] [tcng] PSCHED_CPU ?

Quoted 7 lines

Vladimír Trebický <[email protected]> wrote:

|The problem with PSCHED_CPU is that the time is derived by reading of TSC
|registry which is measure counter of the processor. TSC exists on Intel
|platform from the times of Pentium but sometimes cannot be used as a
|counter, for example with APM (advanced power management) turned on.

]- that's good then 'cause I didn't compiled power-management into the

kernel :")

Quoted 3 lines

Do u know any other reason not to use PSCHED_CPU ?

In the past I have setup "HZ = 1000" when building QoS is it wise to do it

if the only purpose of this computer is QoS+Firewall and of course it is powerfull enought 1.8GHz.

Quoted 1 line

And I don't expect it to exceed 1000 slow-qos-channels and handle not more

than 1Mb/s most of the time.

Quoted 6 lines

raptor
PS.Sorry for the ignorance what is TSC-regitry and its use ? thanx..
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/