自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

魂醉的一亩二分地

夜阑风静縠纹平。小舟从此逝,江海寄余生。

  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

转载 Linux内存中的Cache真的能被回收吗?

在Linux系统中,我们经常用free命令来查看系统内存的使用状态。在一个RHEL6的系统上,free命令的显示内容大概是这样一个状态:[root@tencent64 ~]# free total used free shared buffers cachedMem: 132256952 72571772

2016-04-27 14:50:30 9515 3

原创 Mongodb 3.2.1检查表是否为capped

最近一个监控业务的mongdb,数据量猛增,磁盘吃紧,本来应该都是capped表,不应该空间增长这么快,进去看了一下,是很多新建的表不是capped,但是又由于表很多,在mongdb命令行实在看的眼花,写个脚本查看是否capped。举个例子:先取出表检查语句:$mongo 127.0.0.1:8888/skymobiMongoDB shell version: 3.2.

2016-04-26 10:46:57 623

原创 Postgresql 使用pg_upgrade升级(9.4.4~9.5.2)

建立新版本数据库目录并修改目录owner#mkdir -p /opt/pgsql9.5.2#mkdir -p /opt/pgdata9.5.2/pg_root#chown -R postgres:postgres /opt/pgsql9.5.2#chown -R postgres:postgres /opt/pgdata9.5.2/pg_root/

2016-04-26 10:45:38 2798

原创 Postgresql Automatic Vacuuming

VACUUM是PG日常回收磁盘空间的一个手段,通过参数设置,触发做vacuum回收磁盘空间相关参数:#autovacuum_work_mem = -1 # 最小1MB,如果是-1,那么使用maintenance_work_mem设置的值vacuum_cost_delay = 10 # 0-

2016-04-26 10:40:14 845

原创 Postgresql FATAL: could not create semaphores: No space left on device

今天做恢复的时候,数据库做完恢复后,无法启动报错FATAL:  could not create semaphores: No space left on deviceDETAIL:  Failed system call was semget(xxxxxxxxxx).HINT:  This error does *not* mean that you have

2016-04-05 13:46:36 3318

原创 Postgresql 系统相关函数介绍

Postgresql xlog 先看下pg_xlog下物理文件的命名,大小在数据库编译安装的时候-with-wal-segsize指定000000010000000200000019XLogFileName宏里定义的,分别由时间线ID、日志ID、段ID的八位16进制数依次构成日志ID最大为0xFFFFFFFFF,段ID最大为0x000000F相关

2016-04-05 13:45:31 2351

原创 Postgresql 启动报错 FATAL: could not map anonymous shared memory

FATAL: could not map anonymous shared memory: Cannot allocate memory HINT: This error usually means that PostgreSQL’s request for a shared memory segment exceeded available memory, swap space, or hu

2016-04-05 13:41:31 7473 3

原创 Postgresql 开启huge pages

CentOS release 6.7 (Final)Postgresql 9.4.4修改postgresql.conf参数 huge_pages = on 默认是try修改grub引导配置文件grub.conf 添加numa=offtransparent_hugepage=never或者在/etc/rc.local加入echo n

2016-04-05 11:51:31 1416

原创 MegaCli 常用命令

1.显示Rebuid进度   MegaCli -PDRbld -ShowProg -physdrv[20:2] -aALL2.查看E S  MegaCli -PDList -aAll -NoLog | grep -Ei "(enclosure|slot)"3.查看所有硬盘的状 MegaCli -PDList -aAll -NoLog 4.查看所有Virtual Disk的状态 Mega...

2016-04-05 11:49:54 2032

GREENPLUM管理向导

This guide provides information and instructions for configuring, maintaining and using a Greenplum Database system. This guide is intended for system and database administrators responsible for managing a Greenplum Database system. This guide assumes knowledge of Linux/UNIX system administration, database management systems, database administration, and structured query language (SQL). Because Greenplum Database is based on PostgreSQL 8.2.14, this guide assumes some familiarity with PostgreSQL. Links and cross-references to PostgreSQL documentation are provided throughout this guide for features that are similar to those in Greenplum Database.

2018-04-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除