`
itspace
  • 浏览: 981666 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

What is Swap Space(Pseudo-Swap)?

阅读更多


Pseudo-swap space allows for the use of system memory as a third type of swap space. That is, HP-UX swap space can also consist of up to seven-eighths (87.5%) of system memory capacity.

For example, a computer with one GB of system memory and one GB of device and file system swap, can run up to 1.87 GB of processes. If any process attempts to grow or be created beyond this extended threshold, the process will fail.

When using pseudo-swap, since more processes can be created, the system load increases, causing more paging and deactivation activity.

By default, pseudo-swap space is configured to be available. If you do not wish to make use of it, you will need to re-set the tunable system parameter, swapmem_on, to 0 ("off"). (To modify a configurable parameter, see "Making Adjustments to Your System" in Chapter 1.)
********************************************
System memory used for swap space is called pseudo-swap space. It allows users to execute processes in memory without allocating physical swap. Pseudo-swap is controlled by an operating-system parameter; by default, swapmem_on is set to 1, enabling pseudo-swap.

Typically, when the system executes a process, swap space is reserved for the entire process, in case it must be paged out. According to this model, to run one gigabyte of processes, the system would have to have one gigabyte of configured swap space. Although this protects the system from running out of swap space, disk space reserved for swap is under-utilized if minimal or no swapping occurs.

To avoid such waste of resources, HP-UX is configured to access up to three-quarters of system memory capacity as pseudo-swap. This means that system memory serves two functions: as process-execution space and as swap space. By using pseudo-swap space, a one-gigabyte memory system with one-gigabyte of swap can run up to 1.75 GB of processes. As before, if a process attempts to grow or be created beyond this extended threshold, it will fail.

When using pseudo swap for swap, the pages are locked; as the amount of pseudo-swap increases, the amount of lockable memory decreases.

For factory-floor systems (such as controllers), which perform best when the entire application is resident in memory, pseudo-swap space can be used to enhance performance: you can either lock the application in memory or make sure the total number of processes created does not exceed three-quarters of system memory.

Pseudo-swap space is set to a maximum of three-quarters of system memory because the system can begin paging once three-quarters of system available memory has been used. The unused quarter of memory allows a buffer between the system and the swapper to give the system computational flexibility.

When the number of processes created approaches capacity, the system might exhibit thrashing and a decrease in system response time. If necessary, you can disable pseudo-swap space by setting the tunable parameter swapmem_on in /usr/conf/master.d/core-hpux to zero.

At the head of a doubly linked list of regions that have pseudo-swap allocated is a null terminated list called pswaplist.
分享到:
评论

相关推荐

    swap_digger-master.zip

    首先,我们要理解Linux交换分区(Swap Space)的概念。在内存不足时,Linux会将部分内存数据写入到硬盘上的交换分区,以扩展系统的虚拟内存。这使得交换分区可能存储着系统运行过程中的临时数据,包括密码、凭证等...

    PyPI 官网下载 | swap-0.3.0-py3-none-any.whl

    标题中的"PyPI 官网下载 | swap-0.3.0-py3-none-any.whl"揭示了这个文件与Python编程语言有关,且来源于Python的官方软件包索引(Python Package Index,简称PyPI)。PyPI是Python开发者发布他们创建的开源软件包的...

    js-leetcode题解之24-swap-nodes-in-pairs.js

    js js_leetcode题解之24-swap-nodes-in-pairs.js

    C语言-leetcode题解之24-swap-nodes-in-pairs.c

    c语言入门 C语言_leetcode题解之24-swap-nodes-in-pairs.c

    Python库 | django-swap-user-0.3.1.tar.gz

    **Python库 django-swap-user-0.3.1** 在Python的世界中,库扮演着至关重要的角色,它们为开发者提供了丰富的功能,简化了代码编写,提高了开发效率。本篇文章将详细探讨`django-swap-user`这个特定的库,以及它在...

    CPCI Hotswap ----- PICMG 2.1 R2.0(Hot Swap)-2

    **CPCI Hotswap 技术详解** CPCI(CompactPCI,紧凑型PCI)是一种基于PCI总线技术的工业级标准,旨在提供更坚固、可靠的计算平台,尤其适用于电信、军事和航空航天等领域。CPCI规范继承了PCI接口的高速数据传输能力...

    hotswap-agent+DCEVM-full

    hotswap-agent-1.3.1-SNAPSHOT.jar+DCEVM-full-7u79-installer.jar 适用jdk版本1.7.0_79 DCEVM-full-7u79-installer.jar需要在所在目录用java -jar命令运行,jvm运行只指定加载了DCEVM的jdk,运行时jvm设置参数 ...

    swap-a-b.rar_swap

    在`swap-a-b.rar_swap`的上下文中,可能包含的章节或练习可能涉及了这些交换方法的详细讲解和示例。这不仅有助于初学者理解C++中的基本操作,还能加深对引用和指针的理解,这是C++编程中非常重要的概念。通过实践...

    基于SWAP和MODFLOW-2000的浅水区地下水动态模拟-中文版

    ### 基于SWAP和MODFLOW-2000的浅水区地下水动态模拟 #### 背景与意义 在浅水位区域进行合理的地下水补给与蒸发蒸腾量估计对于水资源可持续管理至关重要。这类地区由于水位较浅,土壤含水量变化大,使得地表与地下...

    Python库 | swap-python-sdk-0.2.3.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:swap-python-sdk-0.2.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    CPCI Hotswap ----- PICMG 2.1 R2.0(Hot Swap)-1

    热插拔(Hot Swap)是CPCI系统中的一个重要特性,允许在系统运行时插入或移除模块,无需中断电源或操作系统,极大地提高了系统的可用性和维护性。 **一、PICMG 2.1 R2.0规范** PICMG(Peripheral Component ...

    hotswap-for-java-file.zip

    默认的时候会在HotSwapManager的static模块启动时创建一个hotswap文件夹, hotswap文件夹中有三个文件 1、classes文件夹,就是把java文件编译出来的class文件存放位置 2、java文件夹,就是你要热更的java文件存放...

    Python库 | django-swap-user-0.4.1.tar.gz

    资源分类:Python库 所属语言:Python 资源全名:django-swap-user-0.4.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    Swap My Cookies-crx插件

    Swap My Cookies是会话管理器,它管理您的Cookie,使您可以使用多个帐户登录任何网站。 您最终可以使用所有帐户登录gmail,yahoo,hotmail以及您使用的任何网站; 如果您想使用另一个帐户,只需交换个人资料! 这是...

    c语言-leetcode 0024-swap-nodes-in-pairs.zip

    c c语言_leetcode 0024_swap_nodes_in_pairs.zip

    libblockdev-swap-devel-2.18-5.el7.i686.rpm

    官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装

    libblockdev-swap-devel-2.24-5.el8.i686.rpm

    rpm安装包

    libblockdev-swap-devel-2.24-7.el8.i686.rpm

    官方离线安装包,亲测可用

Global site tag (gtag.js) - Google Analytics