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

fix: check all results in erlang:system_info(check_io) #200

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

JimMoen
Copy link
Member

@JimMoen JimMoen commented Jan 8, 2025

for OTP build without poll() and fallback to select()
the first check_io result will be primary type select(), and the max_fds was 1024.

> erlang:system_info(check_io).
[[{name,erts_poll},
  {primary,select},
  {kernel_poll,false},
  {memory_size,13448},
  {total_poll_set_size,1},
  {lazy_updates,true},
  {pending_updates,0},
  {batch_updates,false},
  {concurrent_updates,false},
  {fallback,true},
  {max_fds,1024},
  {active_fds,0},
  {poll_threads,0}],
 [{name,erts_poll},
  {primary,epoll},
  {kernel_poll,epoll},
  {memory_size,56},
  {total_poll_set_size,5},
  {lazy_updates,false},
  {pending_updates,0},
  {batch_updates,false},
  {concurrent_updates,true},
  {fallback,false},
  {max_fds,1048576},
  {active_fds,0},
  {poll_threads,0}],
 [{name,erts_poll},
  {primary,epoll},
  {kernel_poll,epoll},
  {memory_size,57400},
  {total_poll_set_size,32},
  {lazy_updates,false},
  {pending_updates,0},
  {batch_updates,false},
  {concurrent_updates,true},
  {fallback,false},
  {max_fds,1048576},
  {active_fds,0},
  {poll_threads,4}]]

@JimMoen JimMoen merged commit f47afbe into emqx:master Jan 8, 2025
3 checks passed
@JimMoen JimMoen deleted the fix-ulimit-max-fds branch January 8, 2025 08:13
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

Successfully merging this pull request may close these issues.

2 participants