some summary of basic linux
来源:互联网 发布:打码兔软件下载 编辑:程序博客网 时间:2024/05/01 18:19
The memory allocation of a user process address space can be displayed with thepmap command.
You can take a look at how much memory is considered as active and inactive using thevmstat -a command
kswapd also follows another principle. The pages are used mainly for two purposes: page cache and process address space. The page cache is pages mapped to a file on disk. The pages that belong to a process address space (called anonymous memory because it is not mapped to any files, and it has no name) are used for heap and stack
When kswapd reclaims pages, it would rather shrink the page cache than page out (or swap out) the pages owned by processes
Page out and swap out: The phrases “page out” and “swap out” are sometimes confusing. The phrase “page out” means take some pages (a part of entire address space) into swap space while “swap out” means taking entire address space into swap space.They are sometimes used interchangeably
A large proportion of page cache that is reclaimed and process address space that is reclaimed might depend on the usage scenario and will affect performance. You can take some control of this behavior by using /proc/sys/vm/swappiness
virtual memory is composed of both physical memory and the disk subsystem or the swap partition
The synchronization process for a dirty buffer is called flush. In the Linux kernel 2.6 implementation, pdflush kernel thread is responsible for flushing data to the disk. The flush occurs on a regular basis (kupdate) and when the proportion of dirty buffers in memory exceeds a certain threshold (bdflush). The threshold is configurable in the/proc/sys/vm/dirty_background_ratio file
As we stated before, the kernel uses buffers to send and receive data. Figure 1-24 shows configurable buffers which can be used for networking. They can be tuned through files in/proc/sys/net.
/proc/sys/net/core/rmem_max
/proc/sys/net/core/rmem_default
/proc/sys/net/core/wmem_max
/proc/sys/net/core/wmem_default
/proc/sys/net/ipv4/tcp_mem
/proc/sys/net/ipv4/tcp_rmem
/proc/sys/net/ipv4/tcp_wmem
You can also change some of the timeout thresholds through files under /proc/sys/net
- some summary of basic linux
- SUMMARY OF BASIC ALGORITHMS
- some basic linux commands
- Self Summary: Basic concepts of GPU
- Some basic details of template in C++
- Some Basic Concept Of Software Test
- Some useful and basic linux websites(English)
- Summary on 20080616: Basic usage of Enum in Java1.5
- Definitions of some Basic Biology Concepts(Start with "GENE")
- Some basic techniques for JavaScript Programming of Cognos Prompts 总结
- some C++ summary
- some C++ summary 2
- some java summary
- [Linux]Personal summary of configure cisco server
- Basic Data Structure summary
- Some basic stuff
- Some basic javascript usage
- Some Basic GDI+ Objects
- Page.ClientScript.RegisterClientScriptBlock 之间的区别
- DP三进制状态压缩:Travelling
- ubuntu管理员省份登入
- sealed、new、virtual、abstract与override 总结
- SQL Server 2008 收缩日志清空删除大日志文件
- some summary of basic linux
- 在linux下如何将ttyS0改成别的号,比如ttyS4什么的,我的系统只有一个串口。
- Windows下PCI9054驱动程序开发环境搭建及常见问题解决
- 介绍大家一个异步加载图片的公用类: EGOImageLoading
- 八大排序(Java实现)
- 对面向对象设计原则的总结
- 控件包含代码块(即 ),因此无法修改控件集合。
- 枚举值转换(字符串转换为枚举和整数转换为枚举)
- 浅谈C#泛型的定义、继承、方法和约束