Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipadm does not work for LX zone, can't change parameters for LX zones. #328

Open
tozhu opened this issue Sep 1, 2020 · 1 comment
Open

Comments

@tozhu
Copy link

tozhu commented Sep 1, 2020

following is the procedure to reproduce:

[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p max_buf=16777216 tcp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p recv_buf=4194304 tcp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p send_buf=2097152 tcp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p max_buf=16777216 udp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p recv_buf=2097152 udp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# /native/sbin/ipadm set-prop -p send_buf=2097152 udp
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 sbin]# reboot

[Connection to zone '7065c19f-e09b-46be-b1c4-fa4f2c41a286' pts/4 closed]
[root@matrix0 ~]# zlogin 7065c19f-e09b-46be-b1c4-fa4f2c41a286
[Connected to zone '7065c19f-e09b-46be-b1c4-fa4f2c41a286' pts/4]
Last login: Tue Sep 1 04:19:32 from zone:global
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 ~]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 ~]#
[root@7065c19f-e09b-46be-b1c4-fa4f2c41a286 ~]# /native/sbin/ipadm show-prop
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipv4 forwarding rw off -- off on,off
ipv4 ttl rw 255 -- 255 1-255
ipv6 forwarding rw off -- off on,off
ipv6 hoplimit rw 255 -- 255 1-255
ipv6 hostmodel rw weak -- weak strong,
src-priority,
weak
ipv4 hostmodel rw weak -- weak strong,
src-priority,
weak
icmp max_buf rw 262144 -- 262144 65536-1073741824
icmp recv_buf rw 8192 -- 8192 4096-262144
icmp send_buf rw 8192 -- 8192 4096-262144
tcp congestion_control rw sunreno -- sunreno sunreno,newreno,
cubic
tcp ecn rw passive -- passive never,passive,
active
tcp extra_priv_ports rw -- -- 2049,4045 1-65535
tcp largest_anon_port rw 65535 -- 65535 1024-65535
tcp max_buf rw 6291456 -- 1048576 8192-1073741824
tcp recv_buf rw 1048576 -- 1048576 2048-6291456
tcp sack rw active -- active never,passive,
active
tcp send_buf rw 128000 -- 128000 4096-6291456
tcp smallest_anon_port rw 32768 -- 32768 1024-65535
tcp smallest_nonpriv_port rw 1024 -- 1024 1024-32768
udp extra_priv_ports rw -- -- 2049,4045 1-65535
udp largest_anon_port rw 65535 -- 65535 1024-65535
udp max_buf rw 2097152 -- 2097152 65536-1073741824
udp recv_buf rw 57344 -- 57344 128-2097152
udp send_buf rw 57344 -- 57344 1024-2097152
udp smallest_anon_port rw 32768 -- 32768 1024-65535
udp smallest_nonpriv_port rw 1024 -- 1024 1024-32768
sctp extra_priv_ports rw 2049,4045 -- 2049,4045 1-65535
sctp largest_anon_port rw 65535 -- 65535 1024-65535
sctp max_buf rw 1048576 -- 1048576 8192-1073741824
sctp recv_buf rw 102400 -- 102400 8192-1048576
sctp send_buf rw 102400 -- 102400 8192-1048576
sctp smallest_anon_port rw 32768 -- 32768 1024-65535
sctp smallest_nonpriv_port rw 1024 -- 1024 1024-32768

@tozhu
Copy link
Author

tozhu commented Sep 1, 2020

Workaround:

Thanks to Dan McDonald gives the Workaround:

put into a rc3.d script so they run at every zone reboot:

/native/usr/sbin/ndd -set /dev/tcp tcp_max_buf 16777216
/native/usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 4194304
/native/usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 2097152

/native/usr/sbin/ndd -set /dev/udp udp_max_buf 16777216
/native/usr/sbin/ndd -set /dev/udp udp_recv_hiwat 2097152
/native/usr/sbin/ndd -set /dev/udp udp_xmit_hiwat 2097152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant