TritonDataCenter / illumos-joyent

Community developed and maintained version of the OS/Net consolidation
http://www.illumos.org/projects/illumos-gate
266 stars 109 forks source link

something about LX annoys the zsh time(1)-like behaviour #107

Open richlowe opened 8 years ago

richlowe commented 8 years ago

I use the zsh option REPORTTIME which causes commands that run for greater than a certain amount of time to report time(1)-like statistics when they complete. (I use REPORTTIME=3, for 3 seconds).

This seems awfully confused in LX. A simple ls of my home directory reports:

dwyn:~> ls
bin  share
ls --color=auto  26.70s user 97.16s system 468191% cpu 0.026 total

Perhaps this is similar to other reported confusion regarding hires_tick?

This is joyent_20160414T011743Z, a debian-8 image based on c0b7ca82-d69f-11e5-a303-4f0b12cb14d6, reporting as Linux dwyn 3.16.0 BrandZ virtual linux x86_64 GNU/Linux using zsh 5.0.7-5

sjorge commented 8 years ago

On my plex server (which is on an older PI to avoid the bug)

-(~)-[.]-{ uname -a ; /native/sbin/uname -v 
Linux artemis 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
joyent_20160329T145112Z
-(~)-[.]-{ REPORTTIME=3 ls /native 
dev  etc  lib  proc  sbin  tmp  usr  var
-(~)-[.]-{ time ls /native
dev  etc  lib  proc  sbin  tmp  usr  var
ls --group-directories-first --color=auto /native  0.04s user 0.15s system 1233% cpu 0.015 total
pfmooney commented 8 years ago

Open as: OS-5374