Hi Rick, try running this from expert mode:
ps -ef | awk '{ print $2 }' | xargs -i -t ionice -p {} \;
In my output on an 8GB RAM, 8-core Take42 standalone R80.10 SMS I'm seeing two processes with a modified ionice priority:
ionice -p 9656 ;
best-effort: prio 7
ionice -p 9685 ;
best-effort: prio 7
And those processes are:
SOLR 9656 E 1 [06:35:24] 13/4/2018 N java_solr /opt/CPrt-R80/conf/jetty.xml
RFL 9685 E 1 [06:35:24] 13/4/2018 N LogCore
Not sure why you are seeing something different in regards to priorities, but your post did send me off on a noble quest to determine exactly how these processes are being reniced and ioniced. Took awhile but what I found is below, you should be able to figure out why things look different on your system with this information as all of the code involved is shell scripts:
1) CPU and I/O nice values are set in the ${MDS_FWDIR}/conf/serverSettings.props file:
RFL_NICE="19"
RFL_IONICE="7"
This is a verrrrrry interesting file from a SMS tuning perspective as it does not appear to be documented, and you can set all kinds of other java tuning information in here like heap, memory and buffer sizes for the various java-based processes on the SMS. However I would most definitely NOT advise directly tampering with the variables in this file without consulting Check Point TAC. There also appear to be different versions of this file based on the detected hardware specifications of your SMS (via CHOSEN_CPSETUP_PROFILE="Small Medium env resources profile" in my initial setup) which may explain the discrepancy you are seeing.
This then made me wonder if the detection of SMS hardware specifications was only performed when the SMS was first initialized, or every time the SMS was booted. The implication for the former would be that an older profile would still be used even after increasing the hardware specifications of the SMS due to performance problems. However I'm pleased to report that this detection is performed every time the SMS is booted, since after cranking my SMS's RAM from 8GB to 24GB and rebooting I now see CHOSEN_CPSETUP_PROFILE="Large env resources profile with SME or Dedicated Log Server" and many of the heap/memory/buffer variables have been increased substantially.
Of course then I wanted to see all the different SMS performance profiles and what their various hardware thresholds were, and was able to find them contained in the file $CPDIR/conf/CpSetupInfo_resourceProfiles.conf. This file is pretty lengthy and really shows how Check Point painstakingly modeled a lot of different SMS performance situations based on hardware specifications, bravo! If someone wants to parse through this file and lay out all the various thresholds and breakpoints feel free, I've already gone way way too far down the rabbit hole here... 🙂
2) These variables flow into two shell scripts (via a source $MDS_FWDIR/conf/serverSettings.props statement) that are used to start LogCore and SOLR:
/opt/CPrt-R80/bin/java_solr
/opt/CPrt-R80/bin/LogCore
3) These scripts in turn call the shell script /opt/CPshrd-R80/bin/runJavaProcess which sets the CPU and I/O nice values upon invocation of these specific processes if the $RFL_NICE and $RFL_IONICE variables are set.
--
Second Edition of my "Max Power" Firewall Book
Now Available at http://www.maxpowerfirewalls.com
Gateway Performance Optimization R81.20 Course
now available at maxpowerfirewalls.com