[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:16888] Re: Over 2GB on Plamo 3.0



山口@金沢市 です。

<20021205001549B.sshimo@rnac.ne.jp>の記事において
下川原@岩手盛岡近郊さんは書きました。

> 私の所では、
>   % limit
>   cputime         unlimited
>   filesize        unlimited
>   datasize        unlimited
>   stacksize       8192 kbytes
>   coredumpsize    0 kbytes
>   memoryuse       unlimited
>   descriptors     1024 
>   memorylocked    unlimited
>   maxproc         4095 
>   openfiles       1024 
> という出力が得られる環境ですが、1.6GB ほどある2つのファイルを
>   % cat A B > zzz
> とすると、
>   ファイルサイズ制限オーバー
> と出てきます。
> # kterm 上で実行してます。

私の環境は Plamo 2.0 ベースで原形をとどめていないんですが、

  % tcsh --version
  tcsh 6.12.00 (Astron) 2002-07-23 (i386-intel-linux) options 8b,nls,bye,al,kan,ng,rh,nd,color,dspm,filec
  % cat --version
  cat (textutils) 2.0.21
  % dd --version
  dd (fileutils) 4.1.5

で、カーネル 2.4.20, glibc 2.2.5 で、上記のコマンドはカーネル
2.4 以降、glibc 2.2.5 の環境でコンパイルしたものです。

この環境で、

   % dd if=/dev/zero of=test1.dat bs=1k count=1200000
  読み込んだブロック数は 1200000+0
  書き込んだブロック数は 1200000+0
  % ls -l
  -rw-r--r--    1 shingo   users    1228800000 12月  5日 22:50   test1.dat
  % cp test1.dat test2.dat
  % cat test1.dat test2.dat > test12.dat
  % ls -l
  -rw-r--r--    1 shingo   users    1228800000 12月  5日 22:50   test1.dat
  -rw-r--r--    1 shingo   users    2457600000 12月  5日 22:57   test12.dat
  -rw-r--r--    1 shingo   users    1228800000 12月  5日 22:52   test2.dat

って感じでできてます。

> Plamo3.0 なので、制限等無いはずですよね。

実は、

  カーネル 2.2 の時代にコンパイルされたコマンドがそのまま使われている

なんてことがあったりすると over 2GB 対応になっていないです。

上記で出てきたコマンドで怪しそうなものをコンパイルしなおして
試して直れば、そのコマンド(のバイナリ)が原因です。
# tcsh 以外は bash でも使うコマンドだから tcsh が怪しい?
-- 
山口 真悟 (YAMAGUCHI Shingo)
shingo-y@spacelan.ne.jp
shingo@kip.iis.toyama-u.ac.jp

Follow-Ups
[plamo:16889] Re: Over 2GB on Plamo 3.0, YAMAGUCHI Shingo
References
[plamo:16858] Re: Over 2GB on Plamo 3.0, sshimo

[検索ページ] [メール一覧]
Plamo ML 公開システム