亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3627 | 回復(fù): 3
打印 上一主題 下一主題

請教 collecting pv entries -- suggest increasing PMAP_SHPGPERPROC [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-12-04 16:22 |只看該作者 |倒序瀏覽
collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
服務(wù)器:FreeBSD6.2,內(nèi)核未做過調(diào)整

有些時候會出現(xiàn)這面這個錯誤,查資料說是需要修改內(nèi)核文件。
我想問的是,修改內(nèi)核以后,是需要重啟以后才能生效的吧?還是?
這個值是我應(yīng)該以一個什么樣的原則來調(diào)整呢?
謝謝。

論壇徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕節(jié)徽章
日期:2015-08-21 11:06:17
2 [報告]
發(fā)表于 2007-12-04 16:42 |只看該作者
We ran into this problem on a similar system to your setup.  Here
is what we learned:

PV Entries are directly related the number of simultaneous children
processes Apache is allowed to spawn.

To figure out how many PV entries your system is using per
Apache process, run this command:

ipcs -a ; sysctl vm.zone | grep PV

Take a look at the "shared" memory section and find the NATTCH
value for Apache.  That number is the total number of Apache
processes that have attached to that shared memory segment.

The last line of output is your PV entry stats.  The third number in
from the left is the number of PV entries currently in use.

Since there are other things using PV entries on the system
(usually very few - Apache is the big consumer on a web server),
this isn't an exact science, but take the number of PV entries in
use and divide it by the number of Apache processes.  That will
give you a rough estimate of how many PV entries are in use per
Apache process.

I don't fully understand the code (pageout daemon) that calls the
code that generates that warning, but in practical use, the warning  
usually means that you don't have enough pages on the PV entry
"free" list and it has to compete with other page consumers to get
more pages from the system.  

Generally, it isn't a serious problem unless you see 5 of those
messages since the last boot or you're seeing panics from running
out of PV entries.  Five is the maximum warnings you'll see of that
type.  Any activity after that that would have generated the warning
has the warning suppressed, so if you hit five of those messages
from boot to present time, you have a problem that needs to be
addressed.

To address the problem, you'll need to tweak your Apache config
and restart Apache.  Decrease KeepAliveTimeOut or turn off
KeepAlive.  Set MaxClients to a number that will prevent your
system from being crashed by having too many PV entries in use
and yet still handle the load after reducing KeepAliveTimeout.

To determine MaxClients, take your maximum PV entries and
divide it by the number of PV entries per Apache process that you
calculated above.  Then, subtract a few clients from the result (10
or 20) and that should be a good number for MaxClients.

The Apache status page will be your friend when tweaking your
Apache config so that it efficiently handles the load without hitting
MaxClients.  It's off by default, so you'll have to turn it on in your
Apache config if it isn't already on.

To view your current maximum for PV entries, look at 'sysctl
vm.zone' and look at the "limit" column for PV ENTRY.

Determining the maximum PV entries your system will support
after tweaking PMAP_SHPGPERPROC isn't the easiest of tasks,
but here's the basic idea:

pv_entry_max = (shpgperproc * maxproc) + (((((availmem - 1) * 2) +
1) / pagesize) - firstpage)

Availmem can be found by doing a 'less /var/run/dmesg.boot' and
looking at the available memory figure in bytes (not Kbytes).  
Pagesize is typically 4096 bytes on FreeBSD 4.7 i386.  I'm not
certain on this, but I believe firstpage is the same as pagesize.  
Maxproc can be found with a 'sysctl kern.maxproc'.  Shpgperproc
defaults to 200 on FreeBSD 4.7, but may be higher depending on
your kernel config.

Just remember that you can't set PMAP_SHPGPERPROC
arbitrarily high or you could overflow your KVA without ever hitting
the limit for PV ENTRY.  It's best to nudge it upwards gradually
until the "collecting PV entries" goes away, provided you've
tweaked Apache as suggested above.

I know it's kludgy and annoying, but it's just what us heavy Apache
users have to deal with to avoid crashes due to the state of the
FreeBSD VM system.  The general idea is that FreeBSD is
designed for systems that don't do a lot of memory sharing
between overgrown parent and children processes.

Here's an article I found awhile back by Matthew Dillon (FreeBSD
VM guru) that outlines the issue with FreeBSD and memory
sharing between large numbers of large processes:

http://www.freebsd.org/doc/en_US ... vm-design/x106.html

Most of these types of problems will go away when Apache 2.0
becomes useable by most people (missing many vital modules at
the present time) due to it's threading model (vs. spawning
children).  For now, we've just got to deal with it, unless someone
with the right expertise is willing to create a kernel config option
that changes how PV Entries are allocated for systems that have
many big fat memory sharing processes.

Sincerely,
Andrew Kinney
President and
Chief Technology Officer
Advantagecom Networks, Inc.
http://www.advantagecom.net

論壇徽章:
0
3 [報告]
發(fā)表于 2008-12-01 11:38 |只看該作者
1、freebsd // kergel: file:table is full
2、pmap_collect : collecting pv entries -- suggest increasing PMAP_SHPGPERPROC

如果你對FreeBSD Kernel不熟悉的話,可以在/etc/sysctl.conf文件中寫入:

kern.maxfiles=nnnn
vm.v_free_min=nnnn
vm.v_free_target=nnnn
vm.v_free_reserved=nnnn

nnnn的值可以在原來的值基礎(chǔ)上加大,查詢原來的值:

# sysctl -a | grep kern.maxfiles
# sysctl -a | gre vm.v_free_

以上幾個值都可以動態(tài)調(diào)整(FreeBSD 4.x):

# sysctl -w kern.maxfiles=nnnn

以上做法無須編譯內(nèi)核。不過靜態(tài)修改內(nèi)核參數(shù)并編譯內(nèi)核可以“一勞永逸”(有些夸張)地解決很多問題,一般將:“maxusers”參數(shù)加大就可以了,配置內(nèi)核請見: http://ariadne.iz.net/FreeBSD/kernelconfig.html

論壇徽章:
0
4 [報告]
發(fā)表于 2009-01-05 21:23 |只看該作者
暈菜。。。〗裉熳约阂才錾狭。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP