- 博客(12)
- 资源 (6)
- 收藏
- 关注
原创 java.lang.OutOfMemoryError: Java heap space
线上的一个报表系统,基于tomcat 经常出现out of memory错误,增加JVM内存,在catalina.sh 修改如下配置: -Xmx6g -Xms6g -Xmn256m 仍不解决问题,后来内存涨到15G,照样oom。 我推测可能是新生代内存太少,导致新生代内存区不断充满,转移到old区, 而old区回收速度慢,导致的问题,于是我将设置 -Xmx
2015-06-03 16:11:13 387
原创 slab子系统初始化的chicken-egg问题(先有鸡还是先有蛋)
slab子系统的初始化,需要使用kmalloc分配slab系统初始化所需要数据结构的内存,而kmalloc必须在slab系统初始化完成后才能正常工作。所以这就形成一个环,先有鸡还是先有蛋的问题。kmem_cache_init()的过程,分以下几步解决这个问题:1、创建cache_cache和cache_cache中的head array,采用静态数据的方式2.、使用cache_cache分配第一个
2010-05-24 19:30:00 750
原创 emacs 换行符(dos2unix)
最近做项目需要在windows上使用putty通过SSH登录到LINUX上写代码,很不舒服,就是使用samba建立与windows的目录共享。这样直接可以在windows上操作LINUX上的代码了。但是问题就来了。windows上换行符与LINUX不同,在windows编辑的文件,在LINUX编译不过。 想了一个简单的办法(global-set-key (kbd "C-x
2010-01-29 11:58:00 3458
原创 我的emacs配置
;显示括号匹配(show-paren-mode t);括号匹配时显示另外一边的括号,而不是跳到另一个括号(setq show-paren-style parentheses);;显示所在行号和列号(column-number-mode t); 光标显示为一竖线(setq-default cursor-type bar); 不要问 yes-or-no,只问 y-or-n (fset yes-o
2010-01-20 17:46:00 1782
原创 linux 进程间共享内存
可以采用sysV的shmget + shmat 实现。但是我更喜欢shm_open + mmap 更简单。#---------------------writer.c----------------------------#include #include #include #include #include #include #include #inclu
2009-12-16 23:05:00 527
原创 mew 在w32下适配emacs的问题
在emacs中使用mew接收mime的邮件,打开附件时,mew-win32.el会指定打开程序默认程序fiber.exe网上没有找到这个程序。mew-win32.el(defvar mew-w32-exec "fiber.exe")改为(defvar mew-w32-exec "explorer.exe") 然后把mew-m
2009-11-19 09:23:00 693
原创 设置emacs字体
通过options菜单选择字体,满意后 M-x ielm RET 执行 (frame-parameter nil font) RET获取配置的字符串例如"-outline-Courier New-normal-r-normal-normal-16-120-96-96-c-*-iso8859-1"把如下形式的代码贴入.emacs,即可 (set-default-font
2009-11-17 16:50:00 449
原创 socket close vs shutdown
Calling close and shutdown have two different affects on the underlying socket.
2009-11-16 16:45:00 561
原创 emacs todo-mode 简单实用
To-do可以用来做日程安排,todo,done,top分别表示要完成的事情,已完成的事情,和优先事情。记录文件默认放到目录下~/.todo/下面是一些快捷操作i 加入一个条目e 编辑条目k 删除条目+/- 在不同category之间切换j 跳转到不同的categoryf 对已完成的事
2009-11-05 09:25:00 1983
转载 模冗余系统
m模冗余系统由m个(m=2n+1为奇数)相同的子系统和一个表决器组成,经过表决器表决后,m个子系统中占多数相同结果的输出作为系统的输出,如图1-8所示。┇ 图1-8 模冗余系统在m个子系统中,只有n+1个或n+1个以上子系统能正常工作,系统就能正常工作,输出正确结果。假设表决器是完全可靠的,每个子系统的可靠性为R0,则m模冗余系统的可靠性
2009-10-21 10:28:00 1732
原创 emacs Mew的使用
~/.new.el内容:(setq mew-config-alist ( ("default" ("name" . "KT") ("user" . "paragenius") ("smtp-server" . "smtp.sohu.com") ("smtp-por
2009-07-23 10:31:00 3245
原创 do_mmap_pgoff中一处疑问
vma = find_vma_prepare(mm, addr, &prev, &rb_link, &rb_parent); if (vma && vma->vm_start if (do_munmap(mm, addr, len)) 《---这里为什么要删除空间 return -ENOMEM; goto mu
2009-07-22 23:34:00 775
Debugging with GDB
2010-03-13
Practical File System Design with the Be File System
2009-09-08
Mastering_Perl-Tk.chm
2009-04-18
Perl&Lwp.chm
2009-04-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人