서버가 흔들리고 있어요프리BSD 13.
에서문서난 sysctl
그걸 읽을 수 있어hw.pagesize
변경될 수 없습니다진행되는. 이러한 유형의 매개변수는 커널에 따라 달라지기 때문에 이는 이해가 됩니다.
나는 또한 거기에서 이것을 읽을 수 있습니다:
Some of the variables which cannot be modified during normal system oper-
ation can be initialized via loader(8) tunables. This can for example be
done by setting them in loader.conf(5). Please refer to loader.conf(5)
for more information on which tunables are available and how to set them.
안타깝게도 필요한 문서 loader(8)
나 이에 대한 참조를 찾을 수 없습니다.loader.conf(5)
hw.pagesize=...
순진한 시도로 구성 파일 에 추가했지만 /etc/sysctl
성공하지 못했습니다. 이제 실행하면 pagesize
슬픈 4096
바이트 값을 얻습니다.
jose@miner:~ $ pagesize
4096
그런데 어떻게 하면 더 크게 만들 수 있나요? 시스템에서 1GB 페이지를 사용하고 싶지만 활성화하는 방법을 찾을 수 없습니다.
답변1
FreeBSD에는 상당히 잘 문서화된 man
페이지가 있습니다. sysctl
나머지 정보를 찾을 수 없다는 링크에 놀랐습니다 . 다음을 사용하여 이에 대해 읽어보세요.
man man
그러면 다음과 같은 다양한 섹션이 표시됩니다.
The sections of the manual are:
1. FreeBSD General Commands Manual
2. FreeBSD System Calls Manual
3. FreeBSD Library Functions Manual
4. FreeBSD Kernel Interfaces Manual
5. FreeBSD File Formats Manual
6. FreeBSD Games Manual
7. FreeBSD Miscellaneous Information Manual
8. FreeBSD System Manager's Manual
9. FreeBSD Kernel Developer's Manual
이 경우 섹션을 지정하지 않고도 적절한 페이지를 찾을 수 있습니다.
man loader.conf
man loader
하지만 다음과 같이 섹션을 지정할 수 있습니다.
man 8 loader
man 5 loader.conf
온라인에서도 찾을 수 있습니다.로더(8) 로더.conf(5)
당신은 당신의 솔루션에 가깝습니다. 찾고 있는 파일은 다음과 같습니다.
/boot/loader.conf
존재하지 않는 경우 간단히 작성하십시오. 이는 부트스트래핑 중에 읽혀집니다. 이미 구문이 정확합니다.
이것이 처음이라면 다음의 중요한 공지 사항을 주의하십시오:
BUGS
The loader(8) stops reading loader.conf when it encounters a syntax er-
ror, so any options which are vital for booting a particular system
(i.e., "hw.ata.ata_dma=0") should precede any experimental additions to
loader.conf.
정말 잘못된 편집을 하면 /boot/loader.conf
시스템이 부팅되지 않을 위험이 있습니다. 이런 일이 발생하면 "단일 사용자 모드"로 부팅해야 합니다. 부팅할 때 키를 눌러 부팅 프롬프트로 이동합니다. 프롬프트 에 boot:
를 입력합니다 boot -s
. 그런 다음 파일 시스템을 마운트 /sbin/mount -ruw /
하고 구성을 편집할 수 있습니다(vi가 여러분의 친구입니다!).
답변2
man loader.conf
거의 시작 부분에 다음 문장이 있습니다.
All settings have the following format:
variable="value"
/etc/sysctl
그리고 파일이 없습니다 /etc/sysctl.conf
.