LINUX.ORG.RU
решено ФорумAdmin

sysctl: unknown oid 'vm.pmap.pv_entry_max'

 


0

1

Привет,

после обновления с 9.0 до 9.1 не работает vm.pmap.pv_entry_max.

# sysctl vm.pmap.pv_entry_max
sysctl: unknown oid 'vm.pmap.pv_entry_max'

Ядро собрано с теми же параметрами, но на 9.0 всё работает.

Подскажите, пожалуйста, куда копать.

Спасибо



Последнее исправление: cetjs2 (всего исправлений: 1)

u@netbook:~> sysctl vm.pmap.pv_entry_max
vm.pmap.pv_entry_max: 1485792
u@netbook:~> uname -a
FreeBSD netbook 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Wed Sep 11 19:08:08 MSK 2013     root@netbook:/usr/obj/usr/src/sys/NETBOOK  i386
u@netbook:~>
IPR ★★★★★
()
Ответ на: комментарий от IPR

Это стандартное ядро

#  uname -a
FreeBSD server.example.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

# grep -v device /usr/src/sys/amd64/conf/GENERIC

#
# GENERIC -- Generic kernel configuration file for FreeBSD/amd64
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
#
#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/amd64/conf/GENERIC,v 1.568.2.14.2.2 2012/11/17 08:47:33 svnexp Exp $

cpu		HAMMER
ident		GENERIC

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols

options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	SCTP			# Stream Control Transmission Protocol
options 	FFS			# Berkeley Fast Filesystem
options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	NFSCL			# New Network Filesystem Client
options 	NFSD			# New Network Filesystem Server
options 	NFSLOCKD		# Network Lock Manager
options 	NFS_ROOT		# NFS usable as /, requires NFSCL
options 	MSDOSFS			# MSDOS Filesystem
options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
options 	GEOM_PART_GPT		# GUID Partition Tables.
options 	GEOM_RAID		# Soft RAID functionality.
options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
#options 	KDTRACE_FRAME		# Ensure frames are compiled in
#options 	KDTRACE_HOOKS		# Kernel DTrace hooks
options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
options 	KDB			# Kernel debugger related code
options 	KDB_TRACE		# Print a stack trace for a panic

# Make an SMP-capable kernel by default
options 	SMP			# Symmetric MultiProcessor Kernel

# CPU frequency control

# Bus support.

# Floppy drives

# ATA controllers
options 	ATA_CAM		# Handle legacy controllers with CAM

# SCSI Controllers
options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.


# ATA/SCSI peripherals

# RAID controllers interfaced to the SCSI subsystem
#XXX it is not 64-bit clean, -scottl

# RAID controllers
#XXX pointer/int warnings

# atkbdc0 controls both the keyboard and the PS/2 mouse


options 	VESA		# Add support for VESA BIOS Extensions (VBE)


# syscons is the default console driver, resembling an SCO console
options 	SC_PIXEL_MODE	# add support for the raster text mode


# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support

# Serial (COM) ports

# Parallel port


# PCI Ethernet NICs.

# PCI Ethernet NICs that use the common MII bus controller code.

# ISA Ethernet NICs.  pccard NICs included.

# Wireless NIC cards
options 	IEEE80211_DEBUG	# enable debug msgs
options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors


# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.

# USB support
options 	USB_DEBUG	# enable debug msgs
# USB Ethernet, requires miibus
# USB Wireless

# FireWire support
# sbp(4) works for some systems but causes boot failure on others

# Sound support

GenuS
() автор топика
Ответ на: комментарий от IPR
# grep -i -R pv_entry_max ./* | grep amd
[root@server /usr/src/sys]# 

в то же время на 9.0-RELEASE-p4 :

$ grep -i -R pv_entry_max ./* | grep amd
./amd64/amd64/pmap.c:static int pv_entry_count = 0, pv_entry_max = 0, pv_entry_high_water = 0;
./amd64/amd64/pmap.c:	pv_entry_max = shpgperproc * maxproc + cnt.v_page_count;
./amd64/amd64/pmap.c:	TUNABLE_INT_FETCH("vm.pmap.pv_entries", &pv_entry_max);
./amd64/amd64/pmap.c:	pv_entry_high_water = 9 * (pv_entry_max / 10);
./amd64/amd64/pmap.c:		shpgperproc = (pv_entry_max - cnt.v_page_count) / maxproc;
./amd64/amd64/pmap.c:		pv_entry_high_water = 9 * (pv_entry_max / 10);
./amd64/amd64/pmap.c:SYSCTL_PROC(_vm_pmap, OID_AUTO, pv_entry_max, CTLTYPE_INT|CTLFLAG_RW, 
./amd64/amd64/pmap.c:    &pv_entry_max, 0, pmap_pventry_proc, "IU", "Max number of PV entries");
./amd64/amd64/pmap.c:		pv_entry_max = shpgperproc * maxproc + cnt.v_page_count;
./amd64/amd64/pmap.c:		pv_entry_high_water = 9 * (pv_entry_max / 10);
./amd64/amd64/pmap.c:			    "vm.pmap.pv_entry_max sysctl.\n");

GenuS
() автор топика
Ответ на: комментарий от GenuS

Это только amd, наверное:

u@netbook:/sys> grep -i -R pv_entry_max ./* | grep i386
./i386/i386/pmap.c:static int pv_entry_count = 0, pv_entry_max = 0, pv_entry_high_water = 0;
./i386/i386/pmap.c:     pv_entry_max = shpgperproc * maxproc + cnt.v_page_count;
./i386/i386/pmap.c:     TUNABLE_INT_FETCH("vm.pmap.pv_entries", &pv_entry_max);
./i386/i386/pmap.c:     pv_entry_max = roundup(pv_entry_max, _NPCPV);
./i386/i386/pmap.c:     pv_entry_high_water = 9 * (pv_entry_max / 10);
./i386/i386/pmap.c:     pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc);
./i386/i386/pmap.c:SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_max, CTLFLAG_RD, &pv_entry_max, 0,
./i386/i386/pmap.c:                         "vm.pmap.pv_entry_max tunable.\n");
./i386/xen/pmap.c:static int pv_entry_count = 0, pv_entry_max = 0, pv_entry_high_water = 0;
./i386/xen/pmap.c:      pv_entry_max = shpgperproc * maxproc + cnt.v_page_count;
./i386/xen/pmap.c:      TUNABLE_INT_FETCH("vm.pmap.pv_entries", &pv_entry_max);
./i386/xen/pmap.c:      pv_entry_max = roundup(pv_entry_max, _NPCPV);
./i386/xen/pmap.c:      pv_entry_high_water = 9 * (pv_entry_max / 10);
./i386/xen/pmap.c:      pv_maxchunks = MAX(pv_entry_max / _NPCPV, maxproc);
./i386/xen/pmap.c:SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_max, CTLFLAG_RD, &pv_entry_max, 0,
./i386/xen/pmap.c:                          "vm.pmap.pv_entry_max tunable.\n");
u@netbook:/sys> 
IPR ★★★★★
()
Ответ на: комментарий от baka-kun

А зачем мне amd64? Тем более на нетбуке.

IPR ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.