dtrace

  1. Z

    DTrace cannot get correct values of ZFS tunable variables (e.g. zfs_dirty_data_max, zfs_txg_timeout)

    I cannot use the script from ZFS dtrace scripts to print the correct value of zfs_dirty_data_max, and the output is as follows: CPU ID FUNCTION:NAME 2 85224 none:txg-syncing 41MB of 0MB used 0 85224 none:txg-syncing 25MB of...
  2. Farhan Khan

    Using dtrace to print kernel struct argument

    Hi all, TLDR; I want to print out a complicated struct in a human readable way dtrace. I could manually add in the struct, but there are several nested structs and that gets messy and difficult to replicate very quickly. How does one do this? Detailed: I am trying to display the print a...
  3. T

    DTrace unable to resize buffers

    Hi all, I've spent about a week learning and using the DTrace framework and it has worked fantastic. I have also become increasingly familiar with FreeBSD (specifically the kernel) over the last couple of months, but I realize I might still be unaware about a lot of things, so forgive any...
  4. dinsdale

    Solved DTrace, OpenJDK12

    Hi, I'm running minecraft server on an older 32 core AMD server. I've been running 1.12.2 successfully for some time now and any given Minecraft instance only uses a fraction of a percent of CPU time with no users, and usually only a percent or two with 2-3 users. I've started running...
  5. ranvel

    'usem' State in `top` (dtrace help?)

    Hello! I'm working on a problem and I don't know how to find out more about it! I'm having an application that is hanging at a certain point on my production system and in top it is listed as usem (screenshot attached). If it is helpful, the processing that is hanging is part of a...
  6. Nicola Mingotti

    The state of DTrace

    Hi guys, Prompted by a recent thread I start to study dtrace, my first impression is : amazing tool ! I found some things perplexing though; I would like to know if any of you know something about it. 1] I don't find the pid provider. It should be there, at least according to this old page. I...
  7. S

    dtrace - is it possible to perform basic mathematical operations on aggregate values?

    Problem #1 I have a dtrace script which counts 2 aggregates - one aggregates the number of read bytes (@rb), the other, the number of write bytes (@wb). I want to print the output: "@rb, @wb, (100 * @rb) / @wb (ratio as percentage)" Simply outputting an aggregate by itself is easy, but I...
  8. M

    Dtrace does not work

    Hi, I want to get some specific I/O data from FreeBSD. IOStat command does not return what I want, so I think about using dtrace. The problem is that I am getting this error while executing dtrace command: [2.3.1-RELEASE][admin@machine]/usr/share/dtrace: dtrace -s iotime.d dtrace: failed to...
  9. poorandunlucky

    What are DTrace Probes, and do I need them?

    I see DTrace Probes offered as a compile-time option/flag on many ports, and it's selected by default on the very vast majority of the ports for which it's available... As far as I can understand, though, DTrace Probes is just a debugging facility... I never programmed enough to really get...
  10. Farhan Khan

    dtrace probe not listed

    I do not see the function ifhwioctl listed when I run dtrace -l. This function is located in /usr/src/sys/net/if.c. I thought maybe this was optimized out, so I set the following in my /etc/make.conf CFLAGS= -O0 -fno-inline But it is still not listed. What may be causing this lack of probe?
  11. Farhan Khan

    Conditional dtrace based on stack

    Is there a way to execute an if-statement only based on if a function exists in the stack? Something like this: fbt:kernel:ieee80211-whatever-here:entry{ if (myfunction is in the stack) { // Do a print here } } I am trying to monitor a function call in the ieee80211 stack and...
  12. HL1234

    perl5.26 stop with fatal error: /usr/sbin/dtrace doesn't support -h flag

    Hello, I try to compile perl5.26 on a FreeBSD 11.1 system with fresh updated ports and I got these error: /usr/ports/lang/perl5.26/# make ... Support DTrace if available? [y] Where is the dtrace executable? (~name ok) [/usr/sbin/dtrace] *** Configure: Fatal Error: /usr/sbin/dtrace...
  13. A

    Solved Linux compatability, monitor files accessed by linux app

    Hello, I'm trying to use one propiertary linux application with linux-c6-6.9 on FreeBSD 11.1 amd64. Application starts, but stops shortly with error in log file: File shared access error 'v8stg://c:/1/FileStorage': ./src/storage.cpp(5013)" I have no sources and can't contact support directly...
  14. L

    dtrace 'Module is no longer loaded'.

    [root@freebsd_pc ~]# uname -a FreeBSD freebsd_pc 10.3-RELEASE-p18 FreeBSD 10.3-RELEASE-p18 #0: Tue Apr 11 10:31:00 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 dtrace keeps giving me this error no matter which arguments I give it: [root@freebsd_pc ~]#...
  15. Farhan Khan

    dtrace against kernel module prior to kldload

    I am trying to run dtrace against the function rtwn_pci_write_1 )http://src.illumos.org/source/xref/freebsd-head/sys/dev/rtwn/pci/rtwn_pci_reg.c#55). It is located in if_rtwn_pci. Prior to loading the module, there is no probe available for rtwn_pci_write_1, so I cannot use dtrace yet. However...
  16. S

    Dtrace pid and usdt providers?

    Hello. I use FreeBSD 11. Output of uname -a: FreeBSD vonbraun.home 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #2 4f0ac13(releng/11.0): Fri Oct 28 12:36:31 MSK 2016 root@vonbraun.home:/usr/obj/usr/src/sys/MYKERNEL11.0 amd64 This is my kernel configuration: # # GENERIC -- Generic kernel...
  17. E

    How to monitor all HDD activities

    Recently, I started learning to use smartctl to monitor the health of SSD on my server. I am using Intel Solid State Drive 120GB M.2 120 1-Inch SSDSCKJW120H601. The server is for internal use only so I expect there would be only a few data written to SSD per day. However, after I run smartctl -a...
Back
Top