Potential problems - leaving trace enabled in over-write mode?
I’m considering enabling trace on all nodes all the time, doing something like this: mmtracectl --set --trace=def --trace-recycle=global --tracedev-write-mode=overwrite --tracedev-overwrite-buffer-size=256M mmtracectl --start My questions are: - What is the performance penalty of leaving this on 100% of the time on a node? - Does anyone have any suggestions on automation on stopping trace when a particular event occurs? - What other issues, if any? Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413
The performance impact can be quite significant depending on what you are tracing. We even having monitoring that looks for long running traces and the recommended action is to “kill with impunity!!” I believe IBM recommends never running clusters with continuous tracing. -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Oesterlin, Robert Sent: Tuesday, March 07, 2017 2:33 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: [gpfsug-discuss] Potential problems - leaving trace enabled in over-write mode? I’m considering enabling trace on all nodes all the time, doing something like this: mmtracectl --set --trace=def --trace-recycle=global --tracedev-write-mode=overwrite --tracedev-overwrite-buffer-size=256M mmtracectl --start My questions are: - What is the performance penalty of leaving this on 100% of the time on a node? - Does anyone have any suggestions on automation on stopping trace when a particular event occurs? - What other issues, if any? Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413 ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Hi Bob, I have the impression the biggest impact is to metadata-type operations rather than throughput but don't quote me on that because I have very little data to back it up. In the process of testing upgrading from GPFS 3.5 to 4.1 we ran fio on 1000 some nodes against an FS in our test environment which sustained about 60-80k iops on the filesystem's metadata LUNs. At one point I couldn't understand why I was struggling to get about 13k iops and realized tracing was turned on on some subset of nsd servers (which are also manager nodes). After turning it off the throughput immediately shot back up to where I was expecting it to be. Also during testing we were tracking down a bug for which I needed to run tracing *everywhere* and then turn it off when one of the manager nodes saw a particular error. I used a script IBM had sent me a while back to help with this that I made some tweaks to. I've attached it in case its helpful. In a nutshell the process looks like: - start tracing everywhere (/usr/lpp/mmfs/bin/mmdsh -Nall /usr/lpp/mmfs/bin/mmtrace start). Doing it this way avoids the need to change the sdrfs file which depending on your cluster size may or may not have some benefits. - run a command to watch for the event in question that when triggered runs /usr/lpp/mmfs/bin/mmdsh -Nall /usr/lpp/mmfs/bin/mmtrace stop If the condition could present itself on multiple nodes within quick succession (as was the case for me) you could wrap the mmdsh for stopping tracing in an flock, using an arbitrary node that stores the lock locally: ssh $stopHost flock -xn /tmp/mmfsTraceStopLock -c "'/usr/lpp/mmfs/bin/mmdsh -N all /usr/lpp/mmfs/bin/mmtrace stop'" Wrapping it in an flock avoids multiple trace format format attempts. -Aaron On 3/7/17 3:32 PM, Oesterlin, Robert wrote:
I’m considering enabling trace on all nodes all the time, doing something like this:
mmtracectl --set --trace=def --trace-recycle=global --tracedev-write-mode=overwrite --tracedev-overwrite-buffer-size=256M mmtracectl --start
My questions are:
- What is the performance penalty of leaving this on 100% of the time on a node?
- Does anyone have any suggestions on automation on stopping trace when a particular event occurs?
- What other issues, if any?
Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
given that i love data points, let me put some behind this thread :-) starting in version 3.4 we enhanced the trace code of scale significant. this went on release to release all the way up to 4.2.1. since 4.2.1 we made further improvements, but much smaller changes, more optimization , e.g. reducing of trace levels verbosity, etc . with 4.2.2 we switched from blocking traces to in memory traces as the default trace infrastructure, this infrastructure was designed to be turned on all the time with minimal impact on performance. i just took a 4.2.3 build and did load it on one of my faster NVMe nodes and did a 100% random read test with 64 threads against very fast storage. while this was running i started trace with mmtracectl --start ; sleep 10 ; mmtracectl --off , attached is a screenshot of this run : [image: pasted1] the trace started at 14:19:15 and stopped at 14:20:00 (that includes 10 command processing, format of traces, etc) as one can see on the chart the dip in performance is very small, measured looking at raw data its 8%. the system runs at ~920k 4k random read iops /sec and the workload running on the node pushes the system almost to 100% cpu time even without trace running, reason i tested under this condition is because also on a HPC compute oriented workload you will run without spare cpu cycles, so the 8% is under extreme conditions. said all this, the workload i am running is not causing a lot of metadata i/o as i am running within a small number of files, its all read, so no write, therefore this isn't representative to a lot of real world workloads, but covers one very extreme case , high iops requirements under heavy cpu contention. therefore i repeated the test under a heavy metadata workload , SpecSFS SWBUILD. when i run the test with and without traces turned on i see a ~15% loss on max operations/sec/node. again this is another extreme case as there are only few workloads which have a metadata workload component as heavy as SWBUILD. but given that between the 2 extreme cases we are talking about 8 - 15% overhead its is very likely that all real world workloads suffer less than 15% when traces are turned on. only a test in your environment will really show . i would not recommend to try this with any version prior 4.2.1 as the impact will be significant higher than what i measured. hope this helps make a informed decision. Sven On Tue, Mar 7, 2017 at 9:32 PM Oesterlin, Robert < Robert.Oesterlin@nuance.com> wrote:
I’m considering enabling trace on all nodes all the time, doing something like this:
mmtracectl --set --trace=def --trace-recycle=global --tracedev-write-mode=overwrite --tracedev-overwrite-buffer-size=256M mmtracectl --start
My questions are:
- What is the performance penalty of leaving this on 100% of the time on a node?
- Does anyone have any suggestions on automation on stopping trace when a particular event occurs?
- What other issues, if any?
Bob Oesterlin Sr Principal Storage Engineer, Nuance 507-269-0413 <(507)%20269-0413>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Aaron Knister -
Bryan Banister -
Oesterlin, Robert -
Sven Oehme
