Linux:

Linux:

我有一台运行 OSX Mavericks (10.9) 的计算机,同一台机器上还有一个 debian wheezy VM,保守地分配了 2/8 的核心和 4Gb/16Gb 内存。

在虚拟机上,我安装了 texlive-base 和依赖项,另外可能还安装了几个非依赖项,我现在记不清了,但如果有关系的话可以找出来。在 OSX 上,我通过端口安装了 mactex 和“texlive”。

与直觉相反,在 Linux(VM)中编译 Latex 文档的速度明显快于在 OSX 中,我在 OSX 上尝试了两个安装的发行版。

以下是此汇编的时间文件(注意:编译时你还需要这个文件) 分别使用 macports latex 和 debian latex。注意,debian latex 的速度大约快 2.5 倍。我还没有使用 mactex 发行版编译此文件,但我发现它比 macports 的还要慢 5 倍。我的问题是,为什么它们都这么慢?

Linux:

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
 restricted \write18 enabled.
entering extended mode
(./paper.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amscls/amsthm.sty) (./paper.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) [1] [2] [3]
(/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd)

LaTeX Warning: Citation `amsldoc' on page 4 undefined on input line 275.

[4] [5] [6] [7] [8]

LaTeX Warning: Citation `amsldoc' on page 9 undefined on input line 579.


LaTeX Warning: Citation `amsthdoc' on page 9 undefined on input line 579.


Overfull \hbox (1.28pt too wide) in paragraph at lines 605--612
\OT1/cmr/m/n/12 struc-ture. For ex-am-ple, this sec-tion is la-beled us-ing the
 com-mand []\OT1/cmtt/m/n/12 \label{sect:cross-ref}\OT1/cmr/m/n/12 .
[9]

LaTeX Warning: Citation `knuth84' on page 10 undefined on input line 649.

<doodle.eps> [10]

LaTeX Warning: Citation `lamport' on page 11 undefined on input line 774.


LaTeX Warning: Citation `amsldoc' on page 11 undefined on input line 776.


LaTeX Warning: Citation `amsthdoc' on page 11 undefined on input line 777.


LaTeX Warning: Citation `latex-companion' on page 11 undefined on input line 77
9.


LaTeX Warning: Citation `math-into-latex' on page 11 undefined on input line 78
0.


LaTeX Warning: Citation `kopka03' on page 11 undefined on input line 780.


LaTeX Warning: Citation `latex-graphics' on page 11 undefined on input line 781
.

[11]

LaTeX Warning: Citation `knuth84' on page 12 undefined on input line 784.

No file paper.bbl.
[12] (./paper.aux)

LaTeX Warning: There were undefined references.

 )
(see the transcript file for additional information)
Output written on paper.dvi (12 pages, 35156 bytes).
Transcript written on paper.log.
latex paper.tex >&2  0.02s user 0.06s system 98% cpu 0.081 total

操作系统:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/MacPorts 2013_5)
 restricted \write18 enabled.
entering extended mode
(./paper.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 43 languages loaded.
(/opt/local/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive/tex/latex/base/size12.clo))
(/opt/local/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/opt/local/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/opt/local/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/opt/local/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
(/opt/local/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty))
(/opt/local/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/opt/local/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/opt/local/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/opt/local/share/texmf-texlive/tex/latex/latexconfig/graphics.cfg)
(/opt/local/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/opt/local/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/opt/local/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/opt/local/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/opt/local/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/opt/local/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/opt/local/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)
(/opt/local/share/texmf-texlive/tex/latex/amscls/amsthm.sty) (./paper.aux)
*geometry* driver: auto-detecting
*geometry* detected driver: dvips
(/opt/local/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/opt/local/share/texmf-texlive/tex/latex/amsfonts/umsb.fd) [1] [2] [3]
(/opt/local/share/texmf-texlive/tex/latex/base/omscmr.fd)

LaTeX Warning: Citation `amsldoc' on page 4 undefined on input line 275.

[4] [5] [6] [7] [8]

LaTeX Warning: Citation `amsldoc' on page 9 undefined on input line 579.


LaTeX Warning: Citation `amsthdoc' on page 9 undefined on input line 579.


Overfull \hbox (1.28pt too wide) in paragraph at lines 605--612
\OT1/cmr/m/n/12 struc-ture. For ex-am-ple, this sec-tion is la-beled us-ing the
 com-mand []\OT1/cmtt/m/n/12 \label{sect:cross-ref}\OT1/cmr/m/n/12 .
[9]

LaTeX Warning: Citation `knuth84' on page 10 undefined on input line 649.

<doodle.eps> [10]

LaTeX Warning: Citation `lamport' on page 11 undefined on input line 774.


LaTeX Warning: Citation `amsldoc' on page 11 undefined on input line 776.


LaTeX Warning: Citation `amsthdoc' on page 11 undefined on input line 777.


LaTeX Warning: Citation `latex-companion' on page 11 undefined on input line 77
9.


LaTeX Warning: Citation `math-into-latex' on page 11 undefined on input line 78
0.


LaTeX Warning: Citation `kopka03' on page 11 undefined on input line 780.


LaTeX Warning: Citation `latex-graphics' on page 11 undefined on input line 781
.

[11]

LaTeX Warning: Citation `knuth84' on page 12 undefined on input line 784.

No file paper.bbl.
[12] (./paper.aux)

LaTeX Warning: There were undefined references.

 )
(see the transcript file for additional information)
Output written on paper.dvi (12 pages, 35156 bytes).
Transcript written on paper.log.
latex paper.tex >&2  0.14s user 0.02s system 77% cpu 0.209 total

提前致谢!

相关内容