I am trying to install Wordnet-Similarity-2.05.
But it fails ath the "make test" step. Could someone Please explain why the "make test" is failing and what i could fix it?
Following are the details, starting from the failed test:
t/trace.t ......... 51/132
# Failed test at t/trace.t line 141.
# got: '4'
# expected: '0'
# lesk: The lines 'Overlaps: 1 x "the" 1 x "small" 1 x "of" 2 x "any" 1 x "in the" 1 x "or" 1 x "resembling the" 1 x "and" ' and 'Overlaps: 1 x "the" 1 x "small" 1 x "in the" 1 x "or" 1 x "of" 1 x "resembling the" 2 x "any" 1 x "and" ' differ
t/trace.t ......... 121/132 # Looks like you failed 1 test of 132.
t/trace.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/132 subtests
t/vector.t ........ ok
t/vector_pairs.t .. ok
t/wn30loop.t ...... ok
t/wup.t ........... ok
Test Summary Report
-------------------
t/trace.t (Wstat: 256 Tests: 132 Failed: 1)
Failed test: 76
Non-zero exit status: 1
Files=22, Tests=2027, 134 wallclock secs ( 0.44 usr 0.06 sys + 128.26 cusr 4.94 csys = 133.70 CPU)
Result: FAIL
Failed 1/22 test programs. 1/2027 subtests failed.
make: *** [test_dynamic] Error 255
Thanks
Related
I am trying to install Win32::Unicode::Console on Windows 10. I am using Strawberry Perl. From the command prompt:
> perl --version
This is perl 5, version 30, subversion 1 (v5.30.1) built for MSWin32-x64-multi-thread
> chcp
Active code page: 65001
> perl Makefile.PL
Writing ppport.h
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Win32::Unicode
Writing MYMETA.yml and MYMETA.json
> gmake
[...]
> gmake test
"C:\Strawberry\perl\bin\perl.exe" "-Iinc" -MExtUtils::Command::MM -e cp_nonempty -- Unicode.bs blib\arch\auto\Win32\Unicode\Unicode.bs 644
"C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t
t/00_compile.t ........... ok
t/01_load.t .............. ok
t/02_export.t ............ ok
t/03_encode.t ............ ok
t/04_print.t ............. 1/?
# Failed test at t/04_print.t line 14.
# STDOUT is:
# I ⥠Perl
# not:
# I ♥ Perl
# as expected
# Failed test at t/04_print.t line 15.
# STDOUT is:
# [ I ⥠Perl]
# not:
# [ I ♥ Perl]
# as expected
# Failed test at t/04_print.t line 16.
# STDOUT is:
# I ⥠Perl
#
# not:
# I ♥ Perl
#
# as expected
t/04_print.t ............. 5/? # Looks like you failed 3 tests of 13.
t/04_print.t ............. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/13 subtests
t/05_write.t ............. ok
t/06_dir_functions.t ..... ok
t/06_dir_methods.t ....... ok
t/06_dir_tree.t .......... ok
t/07_file.t .............. ok
t/08_error.t ............. ok
t/09_normalize.t ......... ok
t/10_read.t .............. ok
t/10_read_with_offset.t .. ok
t/11_write.t ............. ok
t/12_syswrite.t .......... ok
t/13_system.t ............ ok
t/15_flock.t ............. ok
t/15_flock_win32.t ....... ok
t/16_io_handle_like.t .... ok
t/17_slurp.t ............. ok
t/30_native.t ............ ok
t/31_native_import.t ..... ok
t/32_native_file.t ....... ok
t/33_native_dir.t ........ ok
t/34_args.t .............. ok
t/50_util.t .............. ok
Test Summary Report
-------------------
t/04_print.t (Wstat: 768 Tests: 13 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
Files=27, Tests=284, 25 wallclock secs ( 0.16 usr + 0.05 sys = 0.20 CPU)
Result: FAIL
Failed 1/27 test programs. 3/284 subtests failed.
gmake: *** [Makefile:1038: test_dynamic] Error 255
What can be the problem here?
My coworker and I have the exact same code, using the same libraries, but yet his code works and mine doesn't. We've gotten stuck trying to figure out what is wrong. Any help would be greatly appreciated. The code and error are below.
Code:
import os
os.environ.update({'MALLET_HOME':r'C:...\\mallet-2.0.8/'})
mallet_path = 'C:...\\mallet-2.0.8\\bin\\mallet'
ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=corpus, num_topics=10, id2word=id2word)
Output and Error:
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
<ipython-input-79-6122457c60e1> in <module>
----> 1 ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=corpus, num_topics=10, id2word=id2word)
C:\ProgramData\Anaconda3\lib\site-packages\gensim\models\wrappers\ldamallet.py in __init__(self, mallet_path, corpus, num_topics, alpha, id2word, workers, prefix, optimize_interval, iterations, topic_threshold, random_seed)
129 self.random_seed = random_seed
130 if corpus is not None:
--> 131 self.train(corpus)
132
133 def finferencer(self):
C:\ProgramData\Anaconda3\lib\site-packages\gensim\models\wrappers\ldamallet.py in train(self, corpus)
270
271 """
--> 272 self.convert_input(corpus, infer=False)
273 cmd = self.mallet_path + ' train-topics --input %s --num-topics %s --alpha %s --optimize-interval %s '\
274 '--num-threads %s --output-state %s --output-doc-topics %s --output-topic-keys %s '\
C:\ProgramData\Anaconda3\lib\site-packages\gensim\models\wrappers\ldamallet.py in convert_input(self, corpus, infer, serialize_corpus)
259 cmd = cmd % (self.fcorpustxt(), self.fcorpusmallet())
260 logger.info("converting temporary corpus to MALLET format with %s", cmd)
--> 261 check_output(args=cmd, shell=True)
262
263 def train(self, corpus):
C:\ProgramData\Anaconda3\lib\site-packages\gensim\utils.py in check_output(stdout, *popenargs, **kwargs)
1916 error = subprocess.CalledProcessError(retcode, cmd)
1917 error.output = output
-> 1918 raise error
1919 return output
1920 except KeyboardInterrupt:
CalledProcessError: Command 'C:\mallet-2.0.8\bin\mallet import-file --preserve-case --keep-sequence --remove-stopwords --token-regex "\S+" --input C:\Users\CST~1.JEO\AppData\Local\Temp\84f7e0_corpus.txt --output C:\Users\CST~1.JEO\AppData\Local\Temp\84f7e0_corpus.mallet' returned non-zero exit status 1.
I installed Strawberry Perl. I then tried to install Archive::Perl module using CPAN, failed.
I then tried installing other modules like Log::Log4perl, successful.
Platform -
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.20.1.1 #1 Mon Sep 15 13:26:45 2014 x64'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.8.3', gccosandvers=''
Error Summary -
Test Summary Report
-------------------
t/02_main.t (Wstat: 512 Tests: 47 Failed: 7)
Failed tests: 25, 32-34, 38, 46-47
Non-zero exit status: 2
Parse errors: Bad plan. You planned 141 tests but ran 47.
t/03_ex.t (Wstat: 1536 Tests: 17 Failed: 6)
Failed tests: 4, 6, 10, 13-14, 16
Non-zero exit status: 6
Files=16, Tests=140, 9 wallclock secs ( 0.09 usr + 0.13 sys = 0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
PHRED/Archive-Zip-1.39.tar.gz : make_test NO
Complete install output -
cpan> install Archive::Zip
Running install for module 'Archive::Zip'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\P\PH\PHRED\Archive-Zip-1.39.tar.gz ok
Configuring P/PH/PHRED/Archive-Zip-1.39.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Archive::Zip
Writing MYMETA.yml and MYMETA.json
PHRED/Archive-Zip-1.39.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL make=dmake -- OK
Running make for P/PH/PHRED/Archive-Zip-1.39.tar.gz
cp lib/Archive/Zip/ZipFileMember.pm blib\lib\Archive\Zip\ZipFileMember.pm
cp lib/Archive/Zip/MockFileHandle.pm blib\lib\Archive\Zip\MockFileHandle.pm
cp lib/Archive/Zip/DirectoryMember.pm blib\lib\Archive\Zip\DirectoryMember.pm
cp lib/Archive/Zip/FileMember.pm blib\lib\Archive\Zip\FileMember.pm
cp lib/Archive/Zip/NewFileMember.pm blib\lib\Archive\Zip\NewFileMember.pm
cp lib/Archive/Zip/MemberRead.pm blib\lib\Archive\Zip\MemberRead.pm
cp lib/Archive/Zip/Member.pm blib\lib\Archive\Zip\Member.pm
cp lib/Archive/Zip/Tree.pm blib\lib\Archive\Zip\Tree.pm
cp lib/Archive/Zip/Archive.pm blib\lib\Archive\Zip\Archive.pm
cp lib/Archive/Zip/FAQ.pod blib\lib\Archive\Zip\FAQ.pod
cp lib/Archive/Zip/BufferedFileHandle.pm blib\lib\Archive\Zip\BufferedFileHandle.pm
cp lib/Archive/Zip.pm blib\lib\Archive\Zip.pm
cp lib/Archive/Zip/StringMember.pm blib\lib\Archive\Zip\StringMember.pm
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- script/crc32 blib\script\crc32
pl2bat.bat blib\script\crc32
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe -- OK
Running make test
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\li
b', 'blib\arch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/02_main.t ................... 1/141
# Failed test at t/02_main.t line 95.
# got: 'testdir/RwLiD4dp9b/'
# expected: 'testdir\RwLiD4dp9b/'
error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\\RwLiD4dp9b/") called at t/02_main.t line 128
# Failed test at t/02_main.t line 129.
# got: '2'
# expected: '0'
# Failed test at t/02_main.t line 130.
# Failed test at t/02_main.t line 133.
# Failed test at t/02_main.t line 146.
# got: 'testdir/RwLiD4dp9b/string.txt'
# expected: 'testdir\RwLiD4dp9b/string.txt'
error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\\RwLiD4dp9b/string.txt") called at t/02_main.t
line 175
# Failed test at t/02_main.t line 176.
# got: '2'
# expected: '0'
# Failed test at t/02_main.t line 177.
Can't use an undefined value as a symbol reference at t/common.pm line 163.
# Looks like you planned 141 tests but ran 47.
# Looks like you failed 7 tests of 47 run.
# Looks like your test exited with 2 just after 47.
t/02_main.t ................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 101/141 subtests
(less 3 skipped subtests: 37 okay)
t/03_ex.t ..................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/03_ex.t ..................... 1/17 error: member not found
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 185.
Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x4c8468), "testdir\\cq6T6jDiTJ/testing.txt") called at examples/ext
ract.pl line 34
Extracting testdir\cq6T6jDiTJ/testing.txt from C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip failed
t/03_ex.t ..................... 4/17 # Failed test at t/03_ex.t line 37.
# got: '65280'
# expected: '0'
Can't call method "desiredCompressionLevel" on an undefined value at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Arc
hive.pm line 257.
# Failed test at t/03_ex.t line 41.
# got: '512'
# expected: '0'
t/03_ex.t ..................... 8/17
# Failed test at t/03_ex.t line 55.
# got: 'testdir/cq6T6jDiTJ/testing.txt:100
# '
# expected: 'testdir\cq6T6jDiTJ/testing.txt:100
# '
error: testdir\cq6T6jDiTJ\testing.txt is neither a file nor a directory
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 355.
Archive::Zip::Archive::addFileOrDirectory(Archive::Zip::Archive=HASH(0x458588), "testdir\\cq6T6jDiTJ\\testing.txt") called at exampl
es/selfex.pl line 28
# Failed test 'extracted\testdir\cq6T6jDiTJ\testing.txt exists'
# at t/03_ex.t line 69.
# got: undef
# expected: '1'
error: Can't rename C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip as C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zbk Permission
denied
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 472.
Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x637a98), "C:\\Users\\amurty\\AppData\\Local\\Temp\\testout-P4oqi.zip
") called at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 440
Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x637a98)) called at examples/updateTree.pl line 28
t/03_ex.t ..................... 14/17 # Failed test 'updateTree.pl create'
# at t/03_ex.t line 78.
# got: '512'
# expected: '0'
error: Can't rename C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip as C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zbk Permission
denied
at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 472.
Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x4e7a98), "C:\\Users\\amurty\\AppData\\Local\\Temp\\testout-P4oqi.zip
") called at C:\STRAWB~1\cpan\build\Archive-Zip-1.39-UHv240\blib\lib/Archive/Zip/Archive.pm line 440
Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x4e7a98)) called at examples/updateTree.pl line 28
# Failed test 'updateTree.pl update'
# at t/03_ex.t line 81.
# got: '512'
# expected: '0'
# Looks like you failed 6 tests of 17.
t/03_ex.t ..................... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/17 subtests
t/04_readmember.t ............. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/04_readmember.t ............. ok
t/05_tree.t ................... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/05_tree.t ................... ok
t/06_update.t ................. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... The process cannot access the file because it is being used by another process.
warning: C:\strawberry\perl\bin\perl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
Test Summary Report
-------------------
t/02_main.t (Wstat: 512 Tests: 47 Failed: 7)
Failed tests: 25, 32-34, 38, 46-47
Non-zero exit status: 2
Parse errors: Bad plan. You planned 141 tests but ran 47.
t/03_ex.t (Wstat: 1536 Tests: 17 Failed: 6)
Failed tests: 4, 6, 10, 13-14, 16
Non-zero exit status: 6
Files=16, Tests=140, 9 wallclock secs ( 0.09 usr + 0.13 sys = 0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
PHRED/Archive-Zip-1.39.tar.gz
C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
PHRED/Archive-Zip-1.39.tar.gz : make_test NO
cpan>
they changed something, because it works now.
Running make test
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\li
b', 'blib\arch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... ok
t/03_ex.t ..................... ok
t/04_readmember.t ............. ok
t/05_tree.t ................... ok
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
t/17_101092.t ................. ok
t/18_bug_92205.t .............. ok
t/19_bug_101240.t ............. ok
All tests successful.
Files=19, Tests=272, 10 wallclock secs ( 0.09 usr + 0.14 sys = 0.23 CPU)
Result: PASS
Archive::Zip is up to date (1.46).
I used homebrew to install GNU parallel on my mac so I can run some tests remotely on my University's servers. I was quickly running through the tutorials, but when I ran
parallel -S <username>#$SERVER1 echo running on ::: <username>#$SERVER1
I got the message
parallel: Warning: Could not figure out number of cpus on <username#server> (). Using 1.
Possibly related, I never added parallel to my path and got the warning that "parallel" wasn't a recognized command, but parallel ran anyways and still echo'd correctly. This particular server has 16 cores, how can I get parallel to recognize them?
GNU Parallel is less tested on OS X as I do not have access to an OS X installation, so you have likely found a bug.
GNU Parallel has since 20120322 used these to find the number of CPUs:
sysctl -n hw.physicalcpu
sysctl -a hw 2>/dev/null | grep [^a-z]physicalcpu[^a-z] | awk '{ print \$2 }'
And the number of cores:
sysctl -n hw.logicalcpu
sysctl -a hw 2>/dev/null | grep [^a-z]logicalcpu[^a-z] | awk '{ print \$2 }'
Can you test what output you get from those?
Which version of GNU Parallel are you using?
As a work around you can force GNU Parallel to detect 16 cores:
parallel -S 16/<username>#$SERVER1 echo running on ::: <username>#$SERVER1
Since version 20140422 you have been able to export your path to the remote server:
parallel --env PATH -S 16/<username>#$SERVER1 echo running on ::: <username>#$SERVER1
That way you just need to add the dir where parallel lives on the server to your path on local machine. E.g. parallel on the remote server is in /home/u/user/bin/parallel:
PATH=$PATH:/home/u/user/bin parallel --env PATH -S <username>#$SERVER1 echo running on ::: <username>#$SERVER1
Information for Ole
My iMac (OSX MAvericks on Intel core i7) gives the following, which all looks correct:
sysctl -n hw.physicalcpu
4
sysctl -a hw
hw.ncpu: 8
hw.byteorder: 1234
hw.memsize: 17179869184
hw.activecpu: 8
hw.physicalcpu: 4
hw.physicalcpu_max: 4
hw.logicalcpu: 8
hw.logicalcpu_max: 8
hw.cputype: 7
hw.cpusubtype: 4
hw.cpu64bit_capable: 1
hw.cpufamily: 1418770316
hw.cacheconfig: 8 2 2 8 0 0 0 0 0 0
hw.cachesize: 17179869184 32768 262144 8388608 0 0 0 0 0 0
hw.pagesize: 4096
hw.busfrequency: 100000000
hw.busfrequency_min: 100000000
hw.busfrequency_max: 100000000
hw.cpufrequency: 3400000000
hw.cpufrequency_min: 3400000000
hw.cpufrequency_max: 3400000000
hw.cachelinesize: 64
hw.l1icachesize: 32768
hw.l1dcachesize: 32768
hw.l2cachesize: 262144
hw.l3cachesize: 8388608
hw.tbfrequency: 1000000000
hw.packages: 1
hw.optional.floatingpoint: 1
hw.optional.mmx: 1
hw.optional.sse: 1
hw.optional.sse2: 1
hw.optional.sse3: 1
hw.optional.supplementalsse3: 1
hw.optional.sse4_1: 1
hw.optional.sse4_2: 1
hw.optional.x86_64: 1
hw.optional.aes: 1
hw.optional.avx1_0: 1
hw.optional.rdrand: 0
hw.optional.f16c: 0
hw.optional.enfstrg: 0
hw.optional.fma: 0
hw.optional.avx2_0: 0
hw.optional.bmi1: 0
hw.optional.bmi2: 0
hw.optional.rtm: 0
hw.optional.hle: 0
hw.cputhreadtype: 1
hw.machine = x86_64
hw.model = iMac12,2
hw.ncpu = 8
hw.byteorder = 1234
hw.physmem = 2147483648
hw.usermem = 521064448
hw.pagesize = 4096
hw.epoch = 0
hw.vectorunit = 1
hw.busfrequency = 100000000
hw.cpufrequency = 3400000000
hw.cachelinesize = 64
hw.l1icachesize = 32768
hw.l1dcachesize = 32768
hw.l2settings = 1
hw.l2cachesize = 262144
hw.l3settings = 1
hw.l3cachesize = 8388608
hw.tbfrequency = 1000000000
hw.memsize = 17179869184
hw.availcpu = 8
sysctl -n hw.logicalcpu
8
I'm trying to get write size distribution by process. I ran:
sudo dtrace -n 'sysinfo:::writech { #dist[execname] = quantize(arg0); }'
and got the following error:
dtrace: invalid probe specifier sysinfo:::writech...
This is Mac OSX. Please help.
The error message is telling you that Mac OS X doesn't support the sysinfo::: provider. Perhaps you meant to use one of these?
# dtrace -ln sysinfo::writech:
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match sysinfo::writech:: No probe matches description
# dtrace -ln sysinfo:::
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match sysinfo:::: No probe matches description
# dtrace -ln 'syscall::write*:'
ID PROVIDER MODULE FUNCTION NAME
147 syscall write entry
148 syscall write return
381 syscall writev entry
382 syscall writev return
933 syscall write_nocancel entry
934 syscall write_nocancel return
963 syscall writev_nocancel entry
964 syscall writev_nocancel return
The following script works for me:
# dtrace -n 'syscall::write:entry {#dist[execname] = quantize(arg0)}'
dtrace: description 'syscall::write:entry ' matched 1 probe
^C
activitymonitor
value ------------- Distribution ------------- count
2 | 0
4 |######################################## 4
8 | 0
Activity Monito
value ------------- Distribution ------------- count
2 | 0
4 |######################################## 6
8 | 0
...