Pages in active areas shouldn’t be swapped out only those in inactive areas. So it’s a bit like seminary rock.
Networking may also have scheduling type issues. My script works well on single/duel CPU systems, for systems with larger numbers of CPUs I found checking /proc/stat for overall system load before adjusting the scheduling provided a good solution.