{"id":922,"date":"2015-12-10T13:31:43","date_gmt":"2015-12-10T21:31:43","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=922"},"modified":"2015-12-10T13:31:43","modified_gmt":"2015-12-10T21:31:43","slug":"solaris-snoop-on-file-access","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/solaris-snoop-on-file-access\/","title":{"rendered":"Solaris Snoop on File Access"},"content":{"rendered":"

If you find yourself trying to figure out where your operating system is spending time with reads and writes try this little dtrace gem. Script is here: http:\/\/dtracebook.com\/index.php\/File_System:rwsnoop<\/p>\n

I ran it like below. Unknown is socket access and filtering out ssh and grep explains itself.<\/p>\n

\r\n# .\/rwsnoop.dtrace | egrep -v "sshd|grep|unknown"\r\n  UID    PID CMD          D   BYTES FILE\r\n    0    637 utmpd        R       4 \/var\/adm\/wtmpx\r\n  324   2884 java         W      77 \/scratch\/agtst1ML\/MemoryMonitorLog.log\r\n  324   2884 java         W      77 \/scratch\/agtst1ML\/MemoryMonitorLog.log\r\n  324   2884 java         W      77 \/scratch\/agtst1ML\/MemoryMonitorLog.log\r\n  324   2884 java         W      16 \/devices\/pseudo\/poll@0:poll\r\n  324   2884 java         W       8 \/devices\/pseudo\/poll@0:poll\r\n    1    593 nfsmapid     R      78 \/etc\/resolv.conf\r\n    1    593 nfsmapid     R       0 \/etc\/resolv.conf\r\n  324   2884 java         W      77 \/scratch\/agtst1ML\/MemoryMonitorLog.log\r\n    0      1 init         R    1006 \/etc\/inittab\r\n    0      1 init         R       0 \/etc\/inittab\r\n    0      1 init         W     412 \/etc\/svc\/volatile\/init-next.state\r\n    0      1 init         W     412 \/etc\/svc\/volatile\/init-next.state\r\n    0      1 init         R    1006 \/etc\/inittab\r\n    0      1 init         R       0 \/etc\/inittab\r\n    1    180 kcfd         R     976 \/usr\/lib\/security\/pkcs11_kernel.so.1\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

If you find yourself trying to figure out where your operating system is spending time with reads and writes try<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-922","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=922"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/922\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}