Chinaunix首页 | 论坛 | 博客
  • 博客访问: 94497
  • 博文数量: 25
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 316
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-02 00:39
文章分类

全部博文(25)

文章存档

2013年(25)

我的朋友

发布时间:2013-04-22 16:46:07

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <string.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include "fdfs_client.h"#include "fdfs_global.h"#include "base64.h"#include "sockopt.h"#include "logger.h"int main(int argc, char .........【阅读全文】

阅读(1038) | 评论(0) | 转发(0)

发布时间:2013-04-22 16:41:08

5) large-pages = 1使用大内存映射表,16G以上系统开启,10%的性能提升.调整如下/etc/sysctl.conf添加vm.nr_hugepages = 用于mysql的内存大小,单位为page,more /proc/meminfo | grep -i huge 可以查看page大小vm.hugetlb_shm_group = mysql的组id增大kernel.shmmax和kernel.shmall的限制调整/etc/security/limits.........【阅读全文】

阅读(1714) | 评论(0) | 转发(0)

发布时间:2013-04-22 16:38:31

#!/usr/bin/perl -wuse MongoDB;use strict;my $filename = "gc_monitor.pdf";my $fileoutname = "gc_monitor1.pdf";my ($buf,$out);open(DATA, $filename) or die "can't open $filename: $!";open(DATAOUT, ">$fileoutname") or die "can't open $fileoutname: $!";binmode(DATA);binmode(DATAOUT);while(.........【阅读全文】

阅读(1112) | 评论(0) | 转发(0)

发布时间:2013-04-22 16:35:37

perl嵌入c语言原理为使用c外部过程,使用xs语言来扩展和编译模块,然后调用,步骤如下#h2xs -A -n myperl  /* 创建一个名叫myperl的工程 */编辑其中的myperl.xs 如#include "EXTERN.h"#include "perl.h"#include "XSUB.h"#include "ppport.h"MODULE = myperl        PAC.........【阅读全文】

阅读(950) | 评论(0) | 转发(0)

发布时间:2013-04-22 16:30:14

以下为nginx基本配置中nginx.conf中增加或调整的参数,经测试 10000并发连接,10秒的页面请求时间,调整后的配置比调整前配置性能(每秒页面请求数)提高12%#2*CPU核数worker_processes  8;#使用tcmalloc作为每个worker内存池的申请和释放google_perftools_profiles /tmp/tcmalloc;#每个worker文件描述符(FD.........【阅读全文】

阅读(592) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册