http://lp.shm.com.cn/index-htm-m-house-q-hire-a-houseinfo-houseid-503080.htmlhttp://lp.shm.com.cn/index-htm-m-house-q-hire-a-houseinfo-houseid-503095.htmlhttp://lp.shm.com.cn/index-htm-m-house-q-hire-a-houseinfo-houseid-503148.htmlhttp://lp.shm.com.cn/index..
分类:
其他好文 时间:
2015-03-22 06:57:13
阅读次数:
128
Linux默认(CentOS)/dev/shm分区的大小是系统物理内存的50%, 虽说使用/dev/shm对文件操作的效率会高很多,但是目前各发行软件中却很少有使用它的(除了前面提到的Oracle), 可以通过ls /dev/shm查看下面是否有文件, 如果没有就说明当前系统并没有使用该设备.默认的...
分类:
其他好文 时间:
2015-03-16 12:48:01
阅读次数:
203
本案环境:[root@bright~]#uname-r
2.6.32-504.el6.x86_64
[root@bright~]#cat/etc/redhat-release
CentOSrelease6.6(Final)
[root@bright~]#df-h
FilesystemSizeUsedAvailUse%Mountedon
/dev/mapper/vg_bright-lv_root
18G2.7G14G17%/
tmpfs931M0931M0%/dev/shm
/dev/sda1477M..
分类:
其他好文 时间:
2015-03-13 01:47:03
阅读次数:
252
1.首先查看分区,发现300多G的硬盘/dev/sdc1只使用了200多G而已[root@local103dbbackup]#df-hFilesystemSizeUsedAvailUse%Mountedon/dev/sda216G9.6G5.1G66%//dev/sda199M19M76M20%/boottmpfs1006M22M984M3%/dev/shm/dev/sdb179G39G37G52%/disk1/dev/sdc1197G173G15G93%/disk2[..
分类:
其他好文 时间:
2015-03-02 15:02:21
阅读次数:
193
1. 创建/获取一个共享内存#include
#include /* For mode constants */
#include /* For O_* constants */
int shm_open(const char *name, int oflag, mode_t mode);参数: name: 共享内存名字; oflag: 与open...
分类:
系统相关 时间:
2015-02-19 16:23:17
阅读次数:
219
vi /etc/rc.d/rc.local#自动启动oracleecho 502 >/proc/sys/vm/hugetlb_shm_groupsu - oracle -c 'sh /data/oradata/oracle/startdb.sh'source /etc/rc.d/rc.localst...
分类:
系统相关 时间:
2015-02-04 18:21:53
阅读次数:
136
Linux下,Oracle 11g的自动内存管理不能指定大于这个/dev/shm的总量内存。否则就会出现如下错误ORA-00845: MEMORY_TARGET not supported on this systemLinux环境下,挂载点 /dev/shm默认是系统内存的50%。根据Oracle...
分类:
其他好文 时间:
2015-01-26 11:46:22
阅读次数:
198
两个甚至多个进程使用共享内存(shm)通信,总遇到同步问题。这里的“同步问题”不是说进程读写同步问题,这个用信号量就好了。这里的同步问题说的是同步退出问题,到底谁先退出,怎么知道对方退出了。举个例子:进程负责读写数据库A,进程B负责处理数据。那么进程A得比进程B晚退出才行,因为要保存进程B处理完.....
分类:
系统相关 时间:
2015-01-25 22:33:09
阅读次数:
402
Linux新手必知的命令服务器管理命令:1.df:查看磁盘相关信息,常用的参数有-lh[root@192/]#df-lhFilesystemSizeUsedAvailUse%Mountedon/dev/sda3114G31G78G29%/tmpfs242M264K242M1%/dev/shm/dev/sda1291M36M240M14%/boot/dev/sr03.5G3.5G0100%/media/RHEL_6.3x86_64Disc12.du:..
分类:
系统相关 时间:
2015-01-12 06:55:29
阅读次数:
432
首先创建一个公共的头文件 shm_com.h:
#define TEXT_SZ 2048
typedef struct shared_use_st {
int written_by_you;
char some_text[TEXT_SZ];
};
创建消费者程序 shm1.c :
#include
#include
#include
#include
#inc...
分类:
系统相关 时间:
2015-01-03 13:12:20
阅读次数:
232