Captive Portal Python script IO issues

Started by dpsguard, August 08, 2023, 01:30:41 AM

Previous topic - Next topic
Hello All,

In trying to resolve some CPU and IO issues (details at post below, go to page 2 last couple of posts), I find that script cp-background-process.py is switching back and forth between using 100%  IO and 0% continuously. Can some other users of captive portal, issue the command "top -m io" to check if this is an issues in general or if I have any configuration issue causing this? My captive portal is simple terms and conditions acceptance click thru and works.

Including the experts @franco and @AdSchellevis for their advice as well.

https://forum.opnsense.org/index.php?topic=35132.15

Thanks

Hi @franco and @AdSchellevis

Could you spare some moments from your very busy schedule to advise me on this incessant calls by Python to CPU for IOs? Not sure if this results CPU spikes that I get, or if this will become an issue when many guests try to connects at the same time, in serving the portal page from OPNsense?

Thanks

manpage on top for IO was not clear and this is the only document that I find, which explains some arcane terms.

https://klarasystems.com/articles/explaining-top1-on-freebsd/

when I run "top -m io 5",  I see 20 VCSW, 10 write IOPS with total of 10 and 100%. My understanding of this 100% for python script for captive portal background process might be wrong and it might just may have meant that python process is constantly write to disk bit only at 10 per second, which might not be an issue. But I will like the devs to confirm that this is how this is supposed to behave and that there is no bug etc that they need to be made aware of to work on it.