hi, Keith, Sorry for such a delay. Anyway I have managed to populate the truss log
the interesting part is as follows getpid() = 10843 [10842] fstat(7, 0x08046868) = 0 ioctl(7, I_STR, 0x080469B0) = 0 time() = 1401438253 fstat(7, 0x080468E8) = 0 putmsg(7, 0x08046A04, 0x08046AD4, 0) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) (sleeping...) pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) = 0 fstat(7, 0x080468E8) = 0 putmsg(7, 0x08046A04, 0x08046AD4, 0) = 0 pollsys(0x080A4A24, 1, 0x08046A38, 0x00000000) (sleeping...) (...and this continues to previous one) I suspect that this is just sth wrong in reading my usb's bus info, and have to retry to many times? On Fri, May 23, 2014 at 11:36 PM, Keith Wesolowski < [email protected]> wrote: > On Fri, May 23, 2014 at 05:30:08PM +0800, Yu Li via smartos-discuss wrote: > > > hi, everyone, > > > > when back in smartos-201310... version, such as 20131003T221245Z > > > > the `rmformat -l` will return fastly, usually 1-2 seconds > > > > now in smartos-201404... version, such as 20140501T225642Z > > > > this same call `rmformat -l` will usually return after 1min. > > > > Do somebody know why? And is there any solution to make it return faster? > > > > PS: I use this cmd to find the dev of removable media (either DVD or USB) > > in my program, as now it returns slower, it really makes me anxious > > sometime. I know as it do return, it is a serious problem. But I just > want > > to know why, and is there anyway to speed it up. > > Well, where is it spending its time? Have you tried using DTrace here, > or even truss as a starting point? > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
