-
Notifications
You must be signed in to change notification settings - Fork 2
/
zil.xd
executable file
·48 lines (41 loc) · 993 Bytes
/
zil.xd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/sbin/dtrace -s
zil_commit:entry
{
self->records = 0;
self->blocks = 0;
self->ts = timestamp;
}
list_remove:entry
/self->ts/
{
self->records++;
}
zil_lwb_write_start:entry
/self->ts/
{
self->blocks++;
}
zil_commit:return
{
@["zil_commit time in microseconds"] = quantize(entry->elapsed_us);
@a["zil_commit time in microseconds"] = avg(entry->elapsed_us);
@["records per commit"] = quantize(self->records);
@["blocks per commit"] = quantize(self->blocks);
}
zil_commit_writer:return
{
@["zil_commit_writer time in microseconds"] = quantize(entry->elapsed_us);
@a["zil_commit_writer time in microseconds"] = avg(entry->elapsed_us);
@a["records per commit_writer"] = avg(self->records);
@a["blocks per commit_writer"] = avg(self->blocks);
}
zio_alloc_zil:entry
{
@["zil block alloc size"] = quantize(args[4]);
@a["zil block alloc size"] = avg(args[4]);
}
zio_shrink:entry
{
@["zil block write size"] = quantize(args[1]);
@a["zil block write size"] = avg(args[1]);
}