MVS-sysgen / sysgen

Jay Moseley MVS 3.8j sysgen automation
73 stars 21 forks source link

HHC90020W 'hthread_setschedparam()' failed at loc=console.c:3409: rc=22: Invalid argument #38

Closed gmgauthier closed 1 year ago

gmgauthier commented 1 year ago

This error pops up fairly frequently:

HHC90020W 'hthread_setschedparam()' failed at loc=console.c:3409: rc=22: Invalid argument
HHC00007I Previous message from function 'hthread_set_thread_prio' at hthreads.c(1171)
HHC00100I Thread id 00007f63b4550700, prio 0, name 'console_connect' started

and later

HHC00107I Starting thread cckd_writer() from cckd_writer(), active=1, started=1, max=2
HHC90020W 'hthread_setschedparam()' failed at loc=cckddasd.c:1793: rc=22: Invalid argument
HHC00007I Previous message from function 'hthread_set_thread_prio' at hthreads.c(1171)
HHC00100I Thread id 00007f6387bfb700, prio 0, name 'cckd_writer thread 2' started

I see it popping up in other contexts online, as well. Eg.: https://github.com/SDL-Hercules-390/hyperion/issues/181

And a screenshot from moshix includes it from a couple years ago: https://github.com/MVS-sysgen/sysgen/issues/1

So, maybe something hasn't actually be fixed yet?

hercules.log

wrljet commented 1 year ago

Greg,

'hthread_setschedparam()' failed is not an "error". That's an informational warning.

It just means Hercules was not built with setcap permissions (which is, for example, handy if you're asking it to configure networking so you can run it without sudo).

If you're interested, my Hercules-Helper will build you one that won't give you that message.

Bill

gmgauthier commented 1 year ago

Greg,

'hthread_setschedparam()' failed is not an "error". That's an informational warning.

It just means Hercules was not built with setcap permissions (which is, for example, handy if you're asking it to configure networking so you can run it without sudo).

If you're interested, my Hercules-Helper will build you one that won't give you that message.

Bill

Can you post a link?

wrljet commented 1 year ago

https://github.com/wrljet/hercules-helper

It supports many CPUs and OSes. Probably yours. :)

Please read the instructions carefully first (they aren't that good, though), and don't be bashful to ask for help. Either on the GitHub or there's a channel on the Moshix mainframe Discord for Hercules-Helper.


BUT, that warning msg is not causing any problems for you at this stage.

Bill

gmgauthier commented 1 year ago

https://github.com/wrljet/hercules-helper

It supports many CPUs and OSes. Probably yours. :)

Please read the instructions carefully first (they aren't that good, though), and don't be bashful to ask for help. Either on the GitHub or there's a channel on the Moshix mainframe Discord for Hercules-Helper.

BUT, that warning msg is not causing any problems for you at this stage.

Bill

Well, the only thing I'd say in response to that, is that I run the latest TK4Rob in another directory, with the same exact hercules build, and I don't get these errors.

wrljet commented 1 year ago

Well, like I wrote above, it's not an ERROR.

gmgauthier commented 1 year ago

Sure. Whatever.

gmgauthier commented 1 year ago

Well, like I wrote above, it's not an ERROR.

Okay, I finally see what you mean now. I built it with the default options (enabled capabilities) initially. So, now, my choices are:

Screenshot from 2023-03-18 13-33-53

BUT: This still doesn't explain why these thread scheduling messages aren't popping up in TK4... hrm.

In any case, I'll close this one as a non-issue.