Sysctl physmem vs memsize
Hi everyone,
does anyone around here know the exact difference between
sysctl -n hw.physmem
and
sysctl -n hw.memsize
Until recently (about half an hour ago) I was of the opinion that the hw.physmem parameter would give me the amount of physical memory available in the machine. However running it on an 8GB equipped Intel MacPro I get:
sysctl -n hw.physmem
2147483648
which is wrong,
whereas
sysctl -n hw.memsize
8589934592
returns the correct result.
On a G5 Powermac, both versions of the command return the correct result.
Strangely enough, while the manpage
of sysctl itself lists hw.memsize as a valid parameter, it's not listed
on the sysctl.h page where I only find:
HW_PHYSMEM
The bytes of physical memory.
I'm using sysctl in a wrapper script for a Java program where I try to give the JVM as much memory as possible, so if the memsize parameter is the way to go, I'd use that instead of physmem. But if it's some kind of "undocumented" feature I'd rather try to find some other method to check for the physical memory...
Thanks in advance!
I am going to jump on this thread simply because it seems to be a similar though not exactly the same problem I am experiencing.
First, I would also LOVE to find out how to get correct memory sizes from Leopard.
Second, the same method SYSCTL is returning an undocumented value now for the "hw.cpufamily" key on my newer MacBook (the non-pro aluminum unibody from Fall 08) which it reports as 2028621756. This value is not listed anywhere in the documentation on the ADC site so there is no way to properly interpret it beyond saying "Uh, yeah I guess it's a Core Duo 2". =\
Third, it would be wonderful if the "support" at the ADC site actually included regular and timely updates to the documentation about these things or even ways to report errors/omissions. The "support" I received said to come here and ask everyone else which seems more like blowing things off than dealing with them.
Sean.
Similar Messages
-
I need to increase shared memory. In 10.10 is use /etc/sysctl.conf with a line kern.sysv.shmmax=16777216 and this works. Also in 10.9. But in 10.10.1 shared memory can no longer be increased from the default 4194304 by this means.
The question is simple: how in 10.10.1 does one increase kern.sysv.shmmax in a way that survives a re-bootI have the same problem on my windows 2003 server but the
thing is that I have not been able to get the same error on any
other machine including a windows 2003 I installed on VMWare on the
same machine. I have narrowed down to where in the encoder this
happens. The encoder uses page file backed file maps to register
session information. The call to MapViewOfFileEx method of the
Win32 API fails with the "access denied" error. Whatever it is,
it's due to some defect in the Windows installation I have because
I do not get that message on any other windows installation even
the ones I do with the same windows CD !
I am still trying to find out what the defect might be but I
thought you should know it's got nothing to do with you Windows
make and model...it happens for me on 2k3 and for you on XP...so
you should looke elsewhere.. -
Settings in /etc/sysctl.conf overwritten [SOLVED]
I added a new line to /etc/sysctl.conf setting the vm.dirty_ratio to 3 (line is simply `vm.dirty_ratio = 3`). I can invoke it by running `sysctl -p` so I know the syntax is correct. This setting is however not loaded upon a reboot. The systemd-sysctl.service is however kicked off just fine and completes without errors. I have also tried removing the line from /etc/sysctl.conf and placing it in /etc/sysctl.d/dirty.conf but again, it is not honored at boot. What am I doing wrong?
EDIT: The solution is in post #31 - acknowledgement to chp for pointing me to it. Note that I also changed to topic to a more relevant one.
Last edited by graysky (2013-08-10 12:27:41)Guess I'm stumped. I just spun up an Arch VM, pasted in the /etc/sysctl.conf below and reboot it. All the settings in the file in the VM are applied. If Leonid's guess that something is overriding these values on my workstation, I would like to figure out what it is and shut it down. To keep things simple, I booted into the stock ARCH kernel; here are the services I have active:
UNIT LOAD ACTIVE SUB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File System Automo
sys-devices-pci0000:00-0000:00:19.0-net-eno1.device loaded active plugged P8P67 Deluxe Motherboard
sys-devices-pci0...-0000:00:1b.0-sound-card0.device loaded active plugged 7 Series/C210 Series Chipset Family High Definition
sys-devices-pci0...6-0000:07:00.0-net-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
sys-devices-pci0...:0-0:0:0:0-block-sda-sda1.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-0:0:0:0-block-sda-sda2.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-0:0:0:0-block-sda-sda3.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...et0:0:0-0:0:0:0-block-sda.device loaded active plugged OCZ-VERTEX4
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb1.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb2.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb3.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb4.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb5.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb6.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...:0-1:0:0:0-block-sdb-sdb7.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...et1:0:0-1:0:0:0-block-sdb.device loaded active plugged WDC_WD1001FALS-00J7B1
sys-devices-pci0...et3:0:0-3:0:0:0-block-sr0.device loaded active plugged ATAPI_iHAS424_B
sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
sys-module-configfs.device loaded active plugged /sys/module/configfs
sys-module-fuse.device loaded active plugged /sys/module/fuse
sys-subsystem-net-devices-eno1.device loaded active plugged P8P67 Deluxe Motherboard
sys-subsystem-net-devices-wlp7s0.device loaded active plugged AR9485 Wireless Network Adapter
-.mount loaded active mounted /
boot.mount loaded active mounted /boot
dev-hugepages.mount loaded active mounted Huge Pages File System
dev-mqueue.mount loaded active mounted POSIX Message Queue File System
home-facade-.cache.mount loaded active mounted /home/facade/.cache
mnt-data.mount loaded active mounted /mnt/data
run-user-1000-gvfs.mount loaded active mounted /run/user/1000/gvfs
scratch.mount loaded active mounted /scratch
sys-fs-fuse-connections.mount loaded active mounted FUSE Control File System
sys-kernel-config.mount loaded active mounted Configuration File System
sys-kernel-debug.mount loaded active mounted Debug File System
tmp.mount loaded active mounted Temporary Directory
var-cache.mount loaded active mounted /var/cache
systemd-ask-password-console.path loaded active waiting Dispatch Password Requests to Console Directory Watc
systemd-ask-password-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
cronie.service loaded active running Periodic Command Scheduler
dbus.service loaded active running D-Bus System Message Bus
fancontrol.service loaded active running Fan control daemon
[email protected] loaded active running Getty on tty1
gpm.service loaded active running Virtual console mouse server
lxdm.service loaded active running LXDE Display Manager
[email protected] loaded active exited A basic static ethernet connection using iproute
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
psd.service loaded active exited Profile-sync-daemon
rtkit-daemon.service loaded active running RealtimeKit Scheduling Policy Service
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
ufw.service loaded active exited CLI Netfilter Manager
upower.service loaded active running Daemon for power management
cups.socket loaded active listening CUPS Printing Service Sockets
dbus.socket loaded active running D-Bus System Message Bus Socket
dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
sshd.socket loaded active listening sshd.socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active listening udev Control Socket
systemd-update-utmp.service loaded active exited Update UTMP about System Reboot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
systemd-vconsole-setup.service loaded active exited Setup Virtual Console
udisks2.service loaded active running Disk Manager
ufw.service loaded active exited CLI Netfilter Manager
upower.service loaded active running Daemon for power management
cups.socket loaded active listening CUPS Printing Service Sockets
dbus.socket loaded active running D-Bus System Message Bus Socket
dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
sshd.socket loaded active listening sshd.socket
systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket loaded active running Journal Socket
systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket loaded active listening udev Control Socket
systemd-udevd-kernel.socket loaded active running udev Kernel Socket
basic.target loaded active active Basic System
cryptsetup.target loaded active active Encrypted Volumes
getty.target loaded active active Login Prompts
graphical.target loaded active active Graphical Interface
local-fs-pre.target loaded active active Local File Systems (Pre)
local-fs.target loaded active active Local File Systems
multi-user.target loaded active active Multi-User System
network.target loaded active active Network
paths.target loaded active active Paths
remote-fs.target loaded active active Remote File Systems
sockets.target loaded active active Sockets
sound.target loaded active active Sound Card
swap.target loaded active active Swap
sysinit.target loaded active active System Initialization
timers.target loaded active active Timers
psd-resync.timer loaded active waiting Timer for Profile-sync-daemon - 1Hour
systemd-tmpfiles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
And...
% systemctl list-unit-files
UNIT FILE STATE
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-fs-nfsd.mount static
proc-sys-fs-binfmt_misc.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount static
var-lib-nfs-rpc_pipefs.mount static
cups.path disabled
systemd-ask-password-console.path static
systemd-ask-password-wall.path static
alsa-restore.service static
alsa-state.service static
alsa-store.service static
arch32.service disabled
[email protected] disabled
avahi-daemon.service disabled
avahi-dnsconfd.service disabled
binfmt-support.service disabled
blkmapd.service disabled
canberra-system-bootup.service disabled
canberra-system-shutdown-reboot.service disabled
canberra-system-shutdown.service disabled
colord.service static
console-getty.service disabled
console-shell.service disabled
cronie.service enabled
cups-browsed.service disabled
cups.service disabled
cupsd.service disabled
dbus-org.freedesktop.hostname1.service static
dbus-org.freedesktop.locale1.service static
dbus-org.freedesktop.login1.service static
dbus-org.freedesktop.timedate1.service static
dbus.service static
debug-shell.service disabled
dhcpcd.service disabled
[email protected] disabled
display-manager.service enabled
distccd.service disabled
dkms.service disabled
dmeventd.service static
emergency.service static
fancontrol.service enabled
ftpd.service disabled
[email protected] enabled
[email protected] static
gpm.service enabled
hddtemp.service disabled
healthd.service disabled
initrd-cleanup.service static
initrd-parse-etc.service static
initrd-switch-root.service static
initrd-udevadm-cleanup-db.service static
ip6tables.service disabled
iptables.service disabled
irexec.service disabled
krb5-kadmind.service disabled
krb5-kdc.service disabled
krb5-kpropd.service disabled
[email protected] static
lirc.service disabled
lircm.service disabled
lm_sensors.service disabled
lxdm.service enabled
mcelog.service disabled
mpd.service disabled
[email protected] disabled
[email protected] disabled
netctl-sleep.service disabled
netctl.service disabled
[email protected] static
[email protected] static
[email protected] enabled
nfsd.service disabled
nmbd.service disabled
nscd.service disabled
ntpd.service enabled
ntpdate.service disabled
polkit.service static
psd-resync.service enabled
psd.service enabled
quotaon.service static
rescue.service static
rpc-gssd.service disabled
rpc-idmapd.service disabled
rpc-mountd.service disabled
rpc-statd.service disabled
rpc-svcgssd.service disabled
rpcbind.service disabled
rsyncd.service disabled
[email protected] static
rtkit-daemon.service disabled
samba.service disabled
sensord.service disabled
[email protected] static
smartd.service disabled
smbd.service disabled
[email protected] static
snmpd.service disabled
snmptrapd.service disabled
speech-dispatcherd.service disabled
sshd.service disabled
[email protected] static
sshdgenkeys.service static
svnserve.service disabled
[email protected] static
systemd-ask-password-console.service static
systemd-ask-password-wall.service static
systemd-binfmt.service static
systemd-fsck-root.service static
[email protected] static
systemd-halt.service static
systemd-hibernate.service static
systemd-hostnamed.service static
systemd-hybrid-sleep.service static
systemd-initctl.service static
systemd-journal-flush.service static
systemd-journal-gatewayd.service static
systemd-journald.service static
systemd-kexec.service static
systemd-localed.service static
systemd-logind.service static
systemd-modules-load.service static
[email protected] static
systemd-poweroff.service static
systemd-quotacheck.service static
systemd-random-seed-load.service static
systemd-random-seed-save.service static
systemd-readahead-collect.service disabled
systemd-readahead-done.service static
systemd-readahead-drop.service disabled
systemd-readahead-replay.service disabled
systemd-reboot.service static
systemd-remount-fs.service static
systemd-shutdownd.service static
systemd-suspend.service static
systemd-sysctl.service static
systemd-timedated.service static
systemd-tmpfiles-clean.service static
systemd-tmpfiles-setup-dev.service static
systemd-tmpfiles-setup.service static
systemd-udev-settle.service static
systemd-udev-trigger.service static
systemd-udevd.service static
systemd-update-utmp-runlevel.service static
systemd-update-utmp.service static
systemd-user-sessions.service static
systemd-vconsole-setup.service static
udisks.service disabled
udisks2.service static
ufw.service enabled
upower.service disabled
usbmuxd.service static
[email protected] disabled
uuidd.service static
vboxweb.service disabled
vncserver.service disabled
winbindd.service disabled
[email protected] disabled
[email protected] disabled
wpa_supplicant.service disabled
[email protected] disabled
avahi-daemon.socket disabled
cups.socket enabled
dbus.socket static
dmeventd.socket static
git-daemon.socket disabled
krb5-kpropd.socket disabled
rsyncd.socket disabled
smbd.socket disabled
sshd.socket enabled
swat.socket disabled
syslog.socket static
systemd-initctl.socket static
systemd-journal-gatewayd.socket disabled
systemd-journald.socket static
systemd-shutdownd.socket static
systemd-udevd-control.socket static
systemd-udevd-kernel.socket static
uuidd.socket disabled
basic.target static
bluetooth.target static
cryptsetup.target static
ctrl-alt-del.target disabled
default.target disabled
emergency.target static
final.target static
getty.target static
graphical.target disabled
halt.target disabled
hibernate.target static
hybrid-sleep.target static
initrd-fs.target static
initrd-root-fs.target static
initrd-switch-root.target static
initrd.target static
kexec.target disabled
local-fs-pre.target static
local-fs.target static
multi-user.target disabled
network-online.target static
network.target static
nss-lookup.target static
nss-user-lookup.target static
paths.target static
poweroff.target disabled
printer.target static
reboot.target disabled
remote-fs-pre.target static
remote-fs.target enabled
rescue.target disabled
rpcbind.target static
shutdown.target static
sigpwr.target static
sleep.target static
smartcard.target static
sockets.target static
sound.target static
suspend.target static
swap.target static
sysinit.target static
system-update.target static
time-sync.target static
timers.target static
umount.target static
psd-resync.timer static
systemd-readahead-done.timer static
systemd-tmpfiles-clean.timer static
231 unit files listed.
Last edited by graysky (2014-11-03 08:39:54) -
Unable to find sysctl.conf
Hi,
I want to install oracle s/w for my production server. before installing oracle i want to set kernel parameters in /etc/sysctl.conf .i logined as root user but i couldn't able to fine sysctl.conf file on server..
Edited by: 920033 on Apr 12, 2012 7:54 AM920033 wrote:
Hi,
I want to install oracle s/w for my production server. before installing oracle i want to set kernel parameters in /etc/sysctl.conf .i logined as root user but i couldn't able to fine sysctl.conf file on server..
Edited by: 920033 on Apr 12, 2012 7:54 AM
bcm@bcm-laptop:~$ ls -l /etc/sysctl.conf
-rw-r--r-- 1 root root 2364 2010-05-07 09:48 /etc/sysctl.conf
bcm@bcm-laptop:~$ -
Sysctl: cannot stat /proc/sys/enable: No such file or directory sysctl
When attempting to use sysctl to enable or disable anything I get
sysctl: cannot stat /proc/sys/enable: No such file or directory
sysctl: cannot stat /proc/sys/wicd: No such file or directory
THIS HAPPENS ON BOTH MY DESKTOP AND LAPTOP
It happens regardless of what service I try to enable or disable
I checked the permissions/owner on both and it is...
Proc is dr-xr-xr-x root:root
and /proc/sys is dr-xr-xr-x, root:root
Any idea whats going on?
Google turned up nothing...
I'm sure I'm missing something simple...
Last edited by ShadowfoxXXX (2013-02-28 04:55:24)ShadowfoxXXX wrote:
When attempting to use sysctl to enable or disable anything I get
sysctl: cannot stat /proc/sys/enable: No such file or directory
sysctl: cannot stat /proc/sys/wicd: No such file or directory
THIS HAPPENS ON BOTH MY DESKTOP AND LAPTOP
It happens regardless of what service I try to enable or disable
sysctl is used to modify kernel parameters. If you are trying to enable/disable/start/stop services, then you'll need to be running systemctl.
Cheers
Patrick -
Wrong defaults for sysctl -p since upgrade to systemd 207?
I've run into this when trying to increase the inotify watches limit following these instructions.
Since upgrading systemd to version 207 sysctl.conf no longer exists, so instead I've put the following line in /etc/sysctl.d/99-sysctl.conf:
fs.inotify.max_user_watches = 524288
But when running "sudo sysctl -p" I get the following message:
$ sudo sysctl -p
sysctl: cannot open "/etc/sysctl.conf": No such file or directory
This is because according to the man page for sysctl:
-p[FILE], --load[=FILE]
Load in sysctl settings from the file specified or
/etc/sysctl.conf if none given.
So, "sysctl -p" by default looks for the sysctl.conf file, which no longer exists in up-to-date arch boxes.
The solution of course is simply running:
sudo sysctl -p /etc/sysctl.d/99-sysctl.conf
But my question is, shouldn't "sysctl -p" look for settings files in /etc/sysctl.d and run all of them by default, instead of looking for a file which does not exist? (and that, even if it exists, will not be run on startup). From my understanding, "sysctl -p" is supposed to apply by default the same settings that will be applied on the next reboot.@kaszak696: no, "sysctl --system" also gives an error message:
$ sudo sysctl --system
[sudo] password for amatriain:
* Applying /usr/lib/sysctl.d/50-coredump.conf ...
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e
* Applying /usr/lib/sysctl.d/50-default.conf ...
kernel.sysrq = 16
kernel.core_uses_pid = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.d/99-sysctl.conf ...
fs.inotify.max_user_watches = 524288
* Applying /etc/sysctl.conf ...
sysctl: cannot open "/etc/sysctl.conf": No such file or directory
Thanks for finding another example of sysctl wrongly assuming that sysctl.conf exists
I'll report the bug to upstream. -
List of sysctl add/del/changes between Tiger and Leopard
I've ran a quick diff between the sysctl values in Tiger and Leopard. Note: This is from two different macbook's, so some values may be changed due to hardware.
This should give folks an idea as to what buffer sizes, performance tweaks, etc. have been added.
If you're real bored, I guess you could revert everything network related back to Tiger values ... but, yeah, good luck with that. You may break more than you fix.
Most of these you can lookup on-line or in the kernel source to see what they do. Sometime in the next week or so I'll add descriptions if you don't have a network background or src code background.
Removed
T debug.net80211: 0 0
T net.athCCAThreshold: 28 28
T net.athaddbaignore: 0 0
T net.athaggrfmax: 28 28
T net.athaggrqmin: 1 1
T net.athbadrxbuf: 0 0
T net.athbadrxdesc: 0 0
T net.athbgscan: 1 1
T net.athdupie: 1 1
T net.athforceBias: 2 2
T net.athforcebadrx: 0 0
T net.athpowermode: 0 0
T net.athppmupdate: 1 1
T net.athvendorie: 1 1
T net.inet.tcp.delacktime: 50
T net.pstimeout: 20 20
Changed
T net.link.generic.system.ifcount: 11
L net.link.generic.system.ifcount: 7
T net.inet6.ip6.fw.debug: 1
L net.inet6.ip6.fw.debug: 0
T net.inet.ip.fw.debug: 1
L net.inet.ip.fw.debug: 0
T net.inet.ip.fw.one_pass: 1
L net.inet.ip.fw.one_pass: 0
T net.inet.ip.fw.static_count: 12
L net.inet.ip.fw.static_count: 1
T net.inet.ip.maxchainsent: 0
L net.inet.ip.maxchainsent: 45
T net.inet.ip.rtexpire: 10
L net.inet.ip.rtexpire: 140
T net.inet.tcp.blackhole: 2
L net.inet.tcp.blackhole: 0
T net.inet.tcp.keepidle: 144000
L net.inet.tcp.keepidle: 7200000
T net.inet.tcp.keepinit: 1500
L net.inet.tcp.keepinit: 75000
T net.inet.tcp.keepintvl: 1500
L net.inet.tcp.keepintvl: 75000
T net.inet.tcp.localslowstartflightsize: 4
L net.inet.tcp.localslowstartflightsize: 8
T net.inet.tcp.loginvain: 3
L net.inet.tcp.loginvain: 0
T net.inet.tcp.msl: 600
L net.inet.tcp.msl: 15000
T net.inet.tcp.sendspace: 32768
L net.inet.tcp.sendspace: 65536
T net.inet.tcp.sockthreshold: 256
L net.inet.tcp.sockthreshold: 64
T net.inet.tcp.pcbcount: 41
L net.inet.tcp.pcbcount: 38
T net.inet.tcp.recvspace: 32768
L net.inet.tcp.recvspace: 65536
T net.inet.udp.blackhole: 1
L net.inet.udp.blackhole: 0
T net.inet.udp.loginvain: 3
L net.inet.udp.loginvain: 0
T net.inet.udp.pcbcount: 44
L net.inet.udp.pcbcount: 16
Added
L kern.netboot: 0
L net.inet.ip.random_id: 1
L net.inet.ip.dummynet.debug: 0
L net.inet.tcp.backgroundioenabled: 1
L net.inet.tcp.backgroundiotrigger: 5
L net.inet.tcp.ecninitiateout: 0
L net.inet.tcp.ecnnegotiatein: 0
L net.inet.tcp.inswcksum: 2806591
L net.inet.tcp.insw_cksumbytes: 1244150487
L net.inet.tcp.maxseg_unacked: 8
L net.inet.tcp.outswcksum: 4438883
L net.inet.tcp.outsw_cksumbytes: 4483972145
L net.inet.tcp.rexmt_thresh: 2
L net.inet.tcp.rfc3465: 1
L net.inet.tcp.rtt_min: 1
L net.inet.tcp.socketunlocked_onoutput: 1
L net.inet.tcp.winscalefactor: 3
L net.inet.udp.inswcksum: 5697
L net.inet.udp.insw_cksumbytes: 721922
L net.inet.udp.outswcksum: 4899
L net.inet.udp.outsw_cksumbytes: 445568
L net.inet6.ip6.fw.enable: 1
L net.link.ether.inet.keep_announcements: 1
L net.link.ether.inet.sendconflictingprobes: 1
L net.link.ether.inet.sendllconflict: 0
L net.link.generic.system.dlilinput_sanitycheck: 0
L net.link.generic.system.multithreadedinput: 1
L net.smb.fs.loglevel: 0
L net.smb.fs.tcprcvbuf: 131072
L net.smb.fs.tcpsndbuf: 131072
L net.smb.fs.version: 104000Hey there,
I believe I'm having the same issue. I'm using Mail.app in 10.5 with a gmail account (IMAP). The issues is that in Tiger we had the IMAP option in the account settings "Advanced" tab to: "Automatically synchronize changed mailboxes." This option appears to be missing, and even more, does not happen in Leopard. What this means is that changes to folders (other than one's that you explicitly open/synchronize manually, will not shows updates in Leopard.
This is especially annoying with the "All Mail" (Archive) folder for Gmail IMAP in Leopard. In order to ensure that your "All Mail" is always up to date, you have to manually open it (to initiate a sync). Otherwise it does not auto update like it does in Tiger.
Thanks,
Shahrum -
Hi,
According to the ipfw man page I should be able to use:
sysctl -w net.link.ether.bridge_ipfw=1
in order to route the bridged packets to ipfw.
When I try that on (Mountain) Lion though I get:
net: class is not implemented
I am missing something?
Regards,
DutchHmmm, looks like what I am trying to do is a dead end in OS X.
https://discussions.apple.com/message/7724509#7724509 -
have installed broadband tuner but i am unable to uninstall it ? plz help me and also tell me the i can bring setting of sysctl -a to default
drcul2008 wrote:
have installed broadband tuner but i am unable to uninstall it ? plz help me and also tell me the i can bring setting of sysctl -a to default
Why? It comes with an uninstaller.
Contact the developer for uninstall instructions. -
Sysctl.conf - best way to start at boot?
Hi all!
My arch box serves as firewall/router to other boxes on my home network. Obviously, I have to use NAT and net.ipv4 forwarding set to 1 (via sysctl.conf file).
My question is: what's the best way to start sysctl at boot, so those kernel variables are set (forwarding, syncookies etc.)?
Currently, I've:
- put my little script with "sysctl -p" line in rc.d directory;
- call that script from rc.conf;
- sysctl.conf is in /etc .
It works... but, I wander what is the better/proper way of doing it.Thanks aCoder.
With some other distros, it would be done automatically (sysctl at boot). User just needs to set values of the sysctl.conf file.
With Arch, both steps are manual - and I didn't know any better way. In other hand, that's what Arch is about, eh!
Cheers,
mladen -
Settings in sysctl.conf not re-loaded on reboot - kernel.printk
My default kernel.printk values are 15 1 1 7, so I get bunch of kernel messages on all tty shells.
So to fix this, I changed default kernel.printk values from 15 1 1 7 to 4 1 1 7 by modifying line in sysctl.conf > "kernel.prink 4 1 1 7"
When I do sysctl -p, changes get applied and excess kernel message go away. However if I reboot, kernel.prink goes back to 15 1 1 7 and I have to run sysctl -p again.I've seen this issue reported in a few other threads before (sysctl.conf settings apparently not being applied during boot). Not really sure what's causing it; but you could workaround the issue by adding "sysctl -p" to your /etc/rc.local. Not a structural fix obviously, but it will get rid of the issue.
-
[solved] new systemd-sysctl applies 99-sysctl.conf before networkd?
Recently pacman updated systemd.
I use systemd-networkd for Ethernet (wired) control (Wireless LAN is hard blocked)
I have this in /etc/sysctl.d/99-sysctl.conf
net.ipv4.ip_forward = 1
This is to allow sharing of internet where my system is gateway.
This worked fine before the recent update.
But after upgrade internet sharing stopped.
I noticed the following sysctl variables (sysctl -a)
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.ens5.forwarding = 0
net.ipv4.conf.ppp1.forwarding = 1
net.ipv4.conf.wls1.forwarding = 1
net.ipv4.ip_forward = 1
Three strange things:
1st is wls1 is disabled yet it is shown (but lets ignore it)
ens5 fowarding is 0?? while rest all are 1.
ppp1 is actually PPPoE based connection activated by [email protected] and runs over ens5
Once I do:
sysctl net.ipv4.conf.ens5.forwarding=1
Internet sharing starts working as expected.
So what is the issue? What changed?
Is it that systemd-sysctl gets applied before systemd-network brings ens5 up?
But then ppp1 is based on ens5 - how is that 1?
Thanks in advance.
Last edited by amish (2015-04-21 06:49:04)Looks like someone has already file bugreport:
https://bugs.freedesktop.org/show_bug.cgi?id=89509
Possible solution would be to add
IPForward=yes
to systemd-networkd .network file -
Hello:
I foolishly modified the /etc/sysctl.conf file on my Macmini server running 10.8.4 server and now things do not work as expected:
* most programs fail to launch (Firefox, Git, Safari)
* the system takes a long time to boot
* there is no network connectivity
* the Server app (and services) fail to launch
I'll greatly appreciate if somebody could post or point me to a stock or default "/etc/sysctl.conf" file.
I did try deleting the /etc/sysctl.conf file altogether, but it did not solve my problem.
Thanks.KnowsABit wrote:
It's interesting and worrisome that both of these answers conflict with the instructions at the Postgres web site, and in other posts about installing Postgres on Mountain Lion. According to those resources, there is no such file by default, but creating it (and rebooting) is the way to change these settings.
This thread is about Postgres on OS X Server, which is installed by default. You shouldn't have to do anything else to set it up. If you are installing Postgres on OS X Client, then you may have some work to do. I tried Postgres a couple of years ago. It was pretty clunky. I assume Apple does a better job of configuring Postgres than Postgres. I suggest installing OS X Server if you want to run Postgres and MySQL is not suitable for some reason. -
$ cat /etc/sysctl.d/99-sysctl.conf
# Protection from the SYN flood attack.
net.ipv4.tcp_syncookies = 1
# Disable packet forwarding.
net.ipv4.ip_forward = 0
# Tweak those values to alter disk syncing and swap behavior.
vm.vfs_cache_pressure = 1000
vm.swappiness = 0
# USB Speed
vm.dirty_ratio = 5
vm.dirty_background_ratio = 3
# KDE
fs.inotify.max_user_watches = 524288
$ cat /proc/sys/vm/dirty_ratio
10
$ cat /proc/sys/vm/dirty_background_ratio
5
but
$ cat /proc/sys/vm/swappiness
0
$ cat /proc/sys/vm/vfs_cache_pressure
1000
Only restarting of systemd-systct.service helps.
$ sudo systemctl restart systemd-sysctl.service
$ cat /proc/sys/vm/dirty_ratio
5
$ cat /proc/sys/vm/dirty_background_ratio
3
what am i doing wrong?
Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
Last edited by Perfect Gentleman (2013-09-20 00:34:44)Perfect Gentleman wrote:Solved with - % sudo chmod -x /usr/lib/pm-utils/power.d/laptop-mode
A more permanent solution is to mask that file
mkdir -p /etc/pm/power.d
touch /etc/pm/power.d/laptop-mode
which will not get written on update or reinstall. (Not than an update to this package seems at all likely but just in case.) -
Help on 10g 64 bit --Sizing SGA and sysctl.conf
Dear Sir,
I have an oracle10g installed on a 64 bit OS and want to allocate 8GB to SGA and want to confirm if i am using the right settings
My sysctl.conf settings are :
cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
kernel.shmmax = 8589934592
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 3000 32000 100 128
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
My init Settings are :
*._DB_BLOCK_LRU_LATCHES=16
*._spin_count=7000
*.archive_lag_target=1800
*.audit_sys_operations=TRUE
*.BACKGROUND_DUMP_DEST='/redf/DB/dbf/dump'
*.circuits=10000
*.COMPATIBLE='10.2.0.4'
*.CONTROL_FILES='/redf/DB/dbf/cntl1/DB_cntl1_01.ctl','/redf/DB/dbf/cntl2/DB_cntl2_02.ctl','/redf/DB/dbf/cntl3/DB_cntl3_03.ctl'
*.CORE_DUMP_DEST='/redf/DB/dbf/dump'
*.cursor_sharing='FORCE'
*.DB_BLOCK_SIZE=8192
*.DB_CACHE_SIZE=1024M
*.db_file_multiblock_read_count=64
*.db_file_name_convert='/redf/DB/dbf','/redf/DB/dbf'
*.DB_NAME='DB'
*.db_writer_processes=8
*.dispatchers='(PROTOCOL=TCP)(DISPATCHERS=10)'
*.FAST_START_MTTR_TARGET=300
*.INSTANCE_NAME='DB'
*.JAVA_POOL_SIZE=64M
*.JOB_QUEUE_PROCESSES=1
*.large_pool_size=150M
*.LOCAL_LISTENER='(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XX.XX.XX.XXX)(PORT=1521)))'
*.LOG_ARCHIVE_DEST_1='LOCATION=/redf/DB/arch'
*.LOG_ARCHIVE_DEST_2='LOCATION=/orabackup/redf/DB/arch_new'
*.log_archive_dest_state_2='ENABLE'
*.log_archive_format='DB%t_%r_%s.arc'
*.log_archive_max_processes=2
*.log_archive_min_succeed_dest=1
*.LOG_ARCHIVE_START=TRUE
*.log_buffer=50000000
*.MAX_DISPATCHERS=40
*.max_shared_servers=40
*.O7_DICTIONARY_ACCESSIBILITY=FALSE
*.open_cursors=10000
*.optimizer_index_cost_adj=20
*.parallel_adaptive_multi_user=TRUE
*.parallel_automatic_tuning=TRUE
*.parallel_max_servers=20
*.parallel_min_servers=2
*.processes=4000
*.QUERY_REWRITE_ENABLED='TRUE'
*.QUERY_REWRITE_INTEGRITY='ENFORCED'
*.recovery_parallelism=5
*.recyclebin='OFF'
*.remote_archive_enable='TRUE'
*.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
*.remote_os_authent=FALSE
*.resource_limit=TRUE
*.session_cached_cursors=200
*.sessions=4000
*.SGA_MAX_SIZE=8000M
*.SGA_TARGET=6500M
*.shared_pool_size=1024M
*.shared_servers=10
*.sort_area_size=10485760
*.sql92_security=TRUE
*.standby_archive_dest='/redf/DB/arch'
*.standby_file_management='AUTO'
*.statistics_level='TYPICAL'
*.timed_statistics=TRUE
*.UNDO_MANAGEMENT='AUTO'
*.undo_retention=1800
*.undo_tablespace='UNDOTBS'
*.USER_DUMP_DEST='/redf/DB/dbf/dump'
Want to confirm is this a proper tuend settings as per memory provided ?
I am aware that it also depends on my appication behaviour , but i just want to check whether the above settings would suffice for a 16GB RAM machine and 64 bit oracle10g
Also let me know if any other setttings apart from this are required , i choose to use SGA Target .Further my application is read intensive . Your suggestions will be highly appreciated.
ThanxHi,
I suggest you to increase the value kernel.shmmax = 8589934592 of this parameter in sysctl.conf to kernel.shmmax = 1288490188
Later if you want to increase the size of SGA then you need to modify the kernel.shmmax = 8589934592 value. In general practice we keep kernel.shmmax value little greater then the value of SGA.
Refer MOS tech note:
*ORA-27102 Database Will Not Start With SHMMAX Set To 8589934592 (8GB) [ID 461519.1]*
*Linux Big SGA, Large Memory, VLM - White Paper [ID 260152.1]*
thanks,
X A H E E R
Edited by: ora_tech on Dec 26, 2010 10:14 AM
Maybe you are looking for
-
How do I set the folder to which temporary files are saved?
As of now, whenever I click "Open with..." when downloading a file, a copy of that file saves to my desktop and never gets cleared. I'd like to set the temporary folder so I can manually clear it periodically, but the only file management option I se
-
Problem in app now of nokia asha501
Sir i restored my asha 501 and after it i can't use my app now. Help please...
-
Need some help here. (hope Im in the right place) Im getting the blue screen and spinning wheel at shutdown, computer wont turn off. I run Techtool Deluxe and my Volume Structure fails (passes surface scan). Disk Utility says volume is fine...... Im
-
STATIC vs STATIC2 in static LOV definition
Hi All, what is the difference between STATIC and STATIC2 ? The documentation on creating checkbox references word 'STATIC'. When I create static LOV by clicking 'Create or edit static List of Values' link on 'Edit Page Item' this uses word 'STATIC2'
-
Hi Everybody, I have to start a process at beginning every month selecting data from the past month. sample start date 1st July, data select from 1st June until 30 June. At the time I start it manually.. is there a possibility to do that automatical