Re: time doesn't work?

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Fri, 12 Feb 2010 13:02:35 -0800
On Fri, Feb 12, 2010 at 12:53 PM, Xin LI <delphij_at_delphij.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2010/02/12 12:41, Garrett Cooper wrote:
>> On Fri, Feb 12, 2010 at 11:12 AM, Xin LI <delphij_at_delphij.net> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Hi,
>>>
>>> Can anyone shed me some light?  Can this be somehow related to some
>>> weird userland setting (sysctl, loader, etc?)
>>>
>>> I just realized that for some reason time doesn't work (both builtin,
>>> csh and /usr/bin/time).  I'm running a unmodified fresh -CURRENT kernel
>>> and userland:
>>>
>>> FreeBSD pcbsd-5265 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r203800: Fri Feb
>>> 12 10:37:24 PST 2010     delphij_at_pcbsd-5265:/usr/obj/usr/src/sys/GENERIC
>>>  amd64
>>>
>>> ===
>>>
>>> (See the '0.00u' stuff) and ignore the errors there.
>>>
>>> [delphij_at_pcbsd-5265]/mnt(112)% time gzip randomfile
>>> load: 0.85  cmd: gzip 8447 [running] 34.29r 0.00u 34.10s 98% 1476k
>>>
>>> /mnt: write failed, filesystem is full
>>> gzip: write: No space left on device
>>> gzip: output file: randomfile.gz wrong size (1673592832 != -1), deleting
>>> gzip: leaving original randomfile
>>> 0.000u 85.063s 1:25.10 99.9%    0+0k 12440+12839io 7pf+0w
>>
>>     It's screwed up on RELENG_8 too (pulled as of approx. the 1st of the month).
>
> Interestingly my laptop worked.  The system having problem is Core i7
> based and my laptop is T8300 (both Intel CPUs).  I have some local
> changes to the source code on laptop but I believe they are unrelated.
>
> Which CPU are you using?  I saw some changes in MD part of code lately
> but have not yet got a clue why this would happen...
>
> Cheers,
> - --
> Xin LI <delphij_at_delphij.net>    http://www.delphij.net/
> FreeBSD - The Power to Serve!          Live free or die
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.14 (FreeBSD)
>
> iQEcBAEBAgAGBQJLdb/XAAoJEATO+BI/yjfBx4sIALuNcAmZmrankpJ1fY2UD9fJ
> 0zyjcBE3cDActHyibCwZ5rll0yDotcFMYEqvDT95iIuuUgbwSmjS46sJP13UdzCR
> mpCZNfMZxVix7AAPBigvQtKZtgLjJA6IKKjp6NxViJj4yAErkYTtmYjYAo3HXAIF
> LtTnc8tdenl/5n+0J9pcCR741NyLBSFiXeV5d6SMd1Ttf2lR+4yMLpJgl4Ki4pAU
> Agaszc5V1lvGWi7sm6fcmcGae9G+QQylfL4WLbDKSHM95bdBaO6xMhDnzGoWET1E
> auiifRxgWduMduEhwdLHVbj9vLqYV1/ReRDSWKOLXuXa6PBDGTLo+DWPUmcDyjg=
> =8ujk
> -----END PGP SIGNATURE-----
>

[garrcoop_at_garrcoop-fbsd ~]$ time vim nose-plist-fix.diff

# monkeyed around for a few seconds...

real	0m5.753s
user	0m0.047s
sys	0m0.019s

[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ time -p vim

# pattered around for a few more seconds...

real 12.04
user 0.07
sys 0.03

[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ uname -a
FreeBSD garrcoop-fbsd.cisco.com 8.0-STABLE FreeBSD 8.0-STABLE #2: Wed
Feb  3 16:57:07 PST 2010
garrcoop_at_garrcoop-fbsd.cisco.com:/usr/obj/usr/src/sys/LAPPY_X86  i386
[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ grep CPUTYPE /etc/make.conf
CPUTYPE	= prescott
[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ grep ^cpu ~root/LAPPY_X86
cpu		I686_CPU
[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ sysctl -a | grep cpu
kern.ccpu: 0
  <cpu count="2" mask="0x3">0, 1</cpu>
    <cpu count="2" mask="0x3">0, 1</cpu>
kern.smp.cpus: 2
kern.smp.maxcpus: 32
debug.cpufreq.verbose: 0
debug.cpufreq.lowest: 0
debug.kdb.stop_cpus: 1
debug.PMAP1changedcpu: 201
hw.ncpu: 2
hw.acpi.cpu.cx_lowest: C1
machdep.hlt_cpus: 0
machdep.hlt_logical_cpus: 0
machdep.logical_cpus_mask: 2
security.jail.param.cpuset.id: 0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 1200
dev.cpu.0.freq_levels: 2001/35000 1750/30625 1600/25000 1400/21875
1200/16000 1050/14000 900/12000 800/14000 700/12250 600/10500 500/8750
400/7000 300/5250 200/3500 100/1750
dev.cpu.0.cx_supported: C1/1 C2/1 C3/17
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 500us
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/1 C2/1 C3/17
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00% 0.00% 0.00% last 500us
dev.acpi_perf.0.%parent: cpu0
dev.acpi_perf.1.%parent: cpu1
dev.est.0.%parent: cpu0
dev.est.1.%parent: cpu1
dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.cpufreq.1.%driver: cpufreq
dev.cpufreq.1.%parent: cpu1
dev.p4tcc.0.%parent: cpu0
dev.p4tcc.1.%parent: cpu1
[garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$

Thanks :),
-Garrett
Received on Fri Feb 12 2010 - 20:02:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC