- 最后登录
- 2013-11-14
- 在线时间
- 104 小时
- 威望
- 999
- 金钱
- 271
- 注册时间
- 2013-1-9
- 阅读权限
- 70
- 帖子
- 63
- 精华
- 0
- 积分
- 999
- UID
- 855
|
20#
发表于 2013-3-15 15:13:32
本帖最后由 Stone 于 2013-3-15 15:18 编辑
davidxu322 发表于 2013-3-15 15:00
多谢Stone
我也感觉时区改的不对,准备晚上来试试
在网上找到将TZ=BEIST+8问题解决的案例
应该是BEIST-8吧,具体详细信息参考。当然这只是可能,最好参考上面帖子里的其他线索,详细查一篇,再决定具体采取什么样的方案 :)
另外我的直觉是最好OS和Grid设置的TZ一致,所以这两个地方你再瞅瞅,因为你上面echo $TZ 是Asia/Shanghai,所以修改的话,建议一致。
这只是参考啦 ~
http://my.safaribooksonline.com/book/-/0738436267/power7-enterprise-server-performance-considerations/287#X2ludGVybmFsX0J2ZGVwRmxhc2hSZWFkZXI/eG1saWQ9MDczODQzNjI2Ny8yODc=
How to know the time zone that is used in the current AIX environment
Check the output of the command (env|grep TZ). If the output format is similar to
“TZ=Asia/Shanghai”, it is an Olson time zone format. If the output format is similar to
“TZ=BEIST-8”, it is a POSIX time zone format.
Performance difference between Olson and POSIX time zones
Although time zone is an environmental variable, it provides a value and does not involve
other functions. But some local time-related subroutines, for example, localtime() and
gettimeofday(), use time zone values. Using other time zone values might cause these
functions’ response times to differ.
In AIX 6.1, when enabling the Olson time zone, the implementation of those subroutines
relies on the ICU library, and the arithmetic of the ICU library, which has been introduced by
the International Components for Unicode, is more complex than the implementation of the
POSIX time zone. Normally, the POSIX time zone value has better performance than the
Olson value.
The Olson time zone penalty might not be a concern in cases where the application looks up
the local time only one time or occasionally, but in cases where the local time-related
subroutines are going to be repeatedly called, or if an application is performance sensitive, it
is a much better option to continue using the POSIX time zone format in AIX 6.1.
In AIX 7.1, the implementation of the Olson time zone does not rely on the ICU library; it uses
native code. So, the performance gains improvements. The performance is similar between
the POSIX and Olson time zones in AIX 7.1.
Setting the POSIX time zone in AIX 6.1 or later
Refer to the following steps to set the POSIX time zone in AIX 6.1 or later:
1.Log in with the root user and edit the /etc/environment:
vi /etc/environment
2.Change the TZ environment variable to POSIX time zone format and save the file, for
example:
TZ=BEIST-8
3.Then, reboot the system.
Good luck |
|