Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
27 user(s) are online (14 user(s) are browsing Forums)

Members: 0
Guests: 27

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2) 3 »
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@tonyw

Same one as mine.

Best regards,

Niels

Go to top
Re: Task scheduler
Not too shy to talk
Not too shy to talk


See User information
It is sad that you beta testers are so far ahead of officially released updates, not blaming you, blaming Hyperion.

I've spent 20 years and money on the OS I love ,μA1 ,Pegasos2 ,A1XE, X5000.
X5000 been my main computer since 2016.

I know it's against NDA but if some of you want to share some new piece of OS4 P.M. me!
I've got my 3 X5000 firmware updates this way because A-EON fail to support their customers. Why? 2000€ fantastic motherboard, abbandoned.. Why?

Put the firmware updates on a-eon.com like every other hardware manufacturer!

Send me what you want, my mouth is shut!

Edit: Sorry Raziel for Hijacking your thread.


Edited by khayoz on 2023/3/25 0:49:13
1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Capehill
Quote:
Could you see also task names? Didn't ExecBase struct change recently, IIRC task lists are private now.
I don't remember how this version of my top works, I implemented different ones.
If it's using the times from the ExecNG task scheduler in struct ETask (which at least in 2006 didn't work for example with 603e CPUs, i.e. BlizzardPPC, yet but only some other CPUs like 750 and 74xy) it needs the old task lists, but if it's using the other, interrupt based method calculating the CPU usage itself instead it doesn't use task lists but only IExec->FindTask(NULL) to create local copies of the Task or Process/CLI names.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@joerg

Kernel 54.20 didn't show task names (top, tequila). Kernel 54.46 seems to display those on both program. Nice.

Go to top
Re: Task scheduler
Home away from home
Home away from home


See User information
@Capehill

What about cpu usage, is there a way to poll that too?

Edit:
@khayoz

That's quite alright

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Raziel
Quote:
What about cpu usage, is there a way to poll that too?
Yes, but apparently only for OS4 developers with access to the internal exec includes.

At least in SDK 53.30 struct ETask isn't in the exec includes.
I can't check newer SDK versions, probably using some AmigaOS-only LhA extension, for example 7-Zip can't extract it (base.lha/Include/include_h/exec isn't recognised as a directory but as an empty file instead).

Getting the CPU usage of a task using PerformanceMonitor.resource should be possible as well.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Capehill
I checked your tequila sources, seems to be very similar to my 2006 version of top.
There is only one possible problem in it I found: It's using the idle.task usage for "unused" CPU time.
While that works with the original ilde.task, at least 15 years old versions of it, it may not for example if you run my CPUTemp.docky on some of the CPUs it did support (603/604, 750, 74xy, maybe 440) because CPUTemp.docky replaces the ilde.task busy loop by code suspending the CPU (wait state/standby mode).

Go to top
Re: Task scheduler
Home away from home
Home away from home


See User information
@joerg

Aww, too bad

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@joerg

I wish Exec would provide proper APIs to query CPU/stack/memory usage per task. I suppose most CPU meters are somewhat hacky. My second wish is that OS itself would provide some basic monitoring tools :)

Thanks for checking the sources. If somebody finds your top clone source code, it will interesting to read.

I took a screenshot of both top and tequila running at the same time: http://capehill.kapsi.fi/top/top_tequila.png

It seems that they mostly agree about performance, but top is more sophisticated, it is able to detect more tasks in general use.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Raziel

Memory usage of each process requires patching lots of system functions.

Memory usage of a specific program is trivial if you can modify the source code. For example in C++ you can overload new/delete operators and you can redefine malloc/free and wrap everything else.

Go to top
Re: Task scheduler
Just popping in
Just popping in


See User information
@Joerg: i can confirm the sources i have available make use of idle.task and forbid.

Let me know if it's ok to share it here.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Ami603
Quote:
@Joerg: i can confirm the sources i have available make use of idle.task and forbid.

Let me know if it's ok to share it here.
Please sent the sources to Capehill, maybe it includes something he can use to improve his tequila tool, which does the same as my top.
Having two independent tools which basically do the same thing doesn't make much sense.

Go to top
Re: Task scheduler
Just popping in
Just popping in


See User information
@joerg:

Ok, done as told.

@Capehill:

Check your PM.

Go to top
Re: Task scheduler
Just popping in
Just popping in


See User information
@joerg

A great little utility- thanks!

@all

It's obvious what most of the displayed numbers represent, but there are some whose meaning is not apparent. Does anyone know what the F:xxxxx, D:xxxxx, and S:xxxxx figures at the top of the display mean? (See Capehill's screenshot for reference.)

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@msteed
IIRC it's the number of IExec->Forbid(), Disable() and SuperState() calls per second.
Just like the way too high number of task switches per second on a nearly idle system (usually caused by lots of 0.0x second timers, you can use for example Scout to check the timer.device list) in the screenshot those are calls with some, or even a lot of overhead which shouldn't be used that often.
It's no big problem on NG systems, but one of the reasons for implementing the "top" program was to find out what made AmigaOS 4.x extremely slow on A1200/BlizzardPPC. For example AmiDock caused hundreds of task switches/second even if no Docky was updating anything, resulting in about 20% CPU usage on an "idle" BlizzardPPC system.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
Tequila 1.0 is available. It has now a GUI mode too.

https://github.com/capehill/tequila/releases/tag/v1.0 or
http://capehill.kapsi.fi/top/Tequila-1.0.lha

@Ami603, please check your PM.

Go to top
Re: Task scheduler
Just popping in
Just popping in


See User information
@Capehill

Ok, sent you an email instead.

Go to top
Re: Task scheduler
Not too shy to talk
Not too shy to talk


See User information
@Capehill

Thanks. Looks nice and useful. Sometimes my CPU goes up just after booting.

What I found is, when my CPU clock suddenly listed high CPU after booting Workbench, is that CPUCLock appears to be the culprit. It listed about 97% usage but the priority is -128 or close to. It shouldn't be that high and shouldn't get so much CPU time to register as such. But maybe something is putting it off.

Go to top
Re: Task scheduler
Just can't stay away
Just can't stay away


See User information
@Hypex

Thanks for testing.

If CPUClock busy loops, then it is probably ready all the time.

I seem to have added CPUClock task to "idlers" list so system is considered to be idling even though CPUClock is spending free CPU. https://github.com/capehill/tequila/blob/master/profiler.c#L276

Go to top
Re: Task scheduler
Not too shy to talk
Not too shy to talk


See User information
@Capehill

Okay, yes, can see that. Thanks for explanation.

Go to top

  Register To Post
« 1 (2) 3 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project