Chinaunix首页 | 论坛 | 博客
  • 博客访问: 25881545
  • 博文数量: 271
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 3358
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:28
文章分类

全部博文(271)

文章存档

2010年(71)

2009年(164)

2008年(36)

我的朋友

分类:

2008-11-26 18:38:24

在UNIX 中经常由于文件太多,进行rm 等的时候经常会出现如下错误.

find /OrderFulfill/*.* -mtime +1 -exec rm -f {} ;

ksh: /usr/bin/find: arg list too long

ksh: /usr/bin/rm: 0403-027 The parameter list is too long

解决方法:

) you can change the system default memory alocation

smitty System Environments

Change / Show Characteristics of Operating System

ARG/ENV list size in 4K byte blocks

you may put the value up to 256 if needed but be careful, in this case, all processes will alocate this quantity of memory. I used to change it for small periods to do cleaning scripts and put it back to it's default value after

Update the system's argument length

chdev -l sys0 -a ncargs='16' (default is 6)

I've changed all mine to 32 but 16 should be sufficient.
That fixes the problem.

"If you always do what you've always done, you will always be where you've always been."

阅读(3399) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~