[Devel] [PATCH RHEL7 COMMIT] config.OpenVZ: limit number of legacy ptys

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jul 17 13:55:39 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.25
------>
commit 6151c44c0614a8979fb929a9967ebcc878aa0cf9
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Sat Jul 18 00:41:21 2015 +0400

    config.OpenVZ: limit number of legacy ptys
    
    At the moment it's prohibited to increase socket receive buffer
    inside a Container and udevd sometimes fails to read all
    events from the socket in time and they are dropped making
    udevd hanging forever.
    
    Let's decrease the number of legacy ptys devices inside a Container:
    * they are used nowadays for CT console feature
    * we have 12 legacy pty devices in 2.6.32-x based kernels
    * we don't expect >12 connections to CT consoles
    
    => let's limit their number by 12 (instead of default 256)
    
    https://jira.sw.ru/browse/PSBM-34741
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 config.OpenVZ       | 2 +-
 config.OpenVZ.debug | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.OpenVZ b/config.OpenVZ
index 1691fd3..22d3cbf 100644
--- a/config.OpenVZ
+++ b/config.OpenVZ
@@ -5260,7 +5260,7 @@ CONFIG_FB_INTEL_I2C=y
 CONFIG_SCHEDSTATS=y
 
 CONFIG_LEGACY_PTYS=y
-CONFIG_LEGACY_PTY_COUNT=256
+CONFIG_LEGACY_PTY_COUNT=12
 
 CONFIG_CHECKPOINT_RESTORE=y
 
diff --git a/config.OpenVZ.debug b/config.OpenVZ.debug
index c3739ac..18cf054 100644
--- a/config.OpenVZ.debug
+++ b/config.OpenVZ.debug
@@ -5371,7 +5371,7 @@ CONFIG_FB_INTEL_I2C=y
 CONFIG_SCHEDSTATS=y
 
 CONFIG_LEGACY_PTYS=y
-CONFIG_LEGACY_PTY_COUNT=256
+CONFIG_LEGACY_PTY_COUNT=12
 
 CONFIG_CHECKPOINT_RESTORE=y
 



More information about the Devel mailing list