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

redis-benchmark gives Too many open files in system when running with -c 100 #1003

Open
John-Ted opened this issue Jul 25, 2023 · 1 comment
Labels
kind/bug Something isn't working

Comments

@John-Ted
Copy link
Contributor

Describe the bug

When building the redis native app, version 7.0.11, and attempting to benchmark it with redis-benchmark, the benchmark does not start and the app outputs Too many open files in system if I set 100 clients.

Steps to reproduce

I used https://github.com/unikraft/app-redis and unikraft/lib-redis#10, along with the other libraries necessary to compile redis-server.

I ran the benchmark with the command redis-benchmark -c 100 -q -h 172.44.0.2

Expected behavior

I expected the benchmark to run properly.

Which architectures were you using or does this bug affect?

x86_64

Which platforms were you using or does this bug affect?

kvm

Relevant log output

SeaBIOS (version 1.15.0-1)


iPXE (https://ipxe.org) 00:04.0 CA00 PCI2.10 PnP PMM+07F8B2F0+07ECB2F0 CA00
                                                                               


Booting from ROM..1: Set IPv4 address 172.44.0.2 mask 255.255.255.0 gw 172.44.0.1
en1: Added
en1: Interface is up
Powered by
o.   .o       _ _               __ _
Oo   Oo  ___ (_) | __ __  __ _ ' _) :_
oO   oO ' _ `| | |/ /  _)' _` | |_|  _)
oOo oOO| | | | |   (| | | (_) |  _) :_
 OoOoO ._, ._:_:_,\_._,  .__,_:_, \___)
                  Atlas 0.13.1~e25d4ead
1:C 01 Aug 2015 10:38:08.031 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 01 Aug 2015 10:38:08.032 # Redis version=7.0.11, bits=64, commit=c5ee3442, modified=1, pid=1, just started
1:C 01 Aug 2015 10:38:08.032 # Configuration loaded
[    0.139388] ERR:  [libposix_process] <deprecated.c @  348> Ignore updating resource 7: cur = 10032, max = 10032
1:M 01 Aug 2015 10:38:08.039 * Increased maximum number of open files to 10032 (it was originally set to 1024).
1:M 01 Aug 2015 10:38:08.040 * monotonic clock: POSIX clock_gettime
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 7.0.11 (c5ee3442/1) 64 bit
  .-`` .-.  ```\/    _.,_ ''-._                                  
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 1
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           https://redis.io       
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

1:M 01 Aug 2015 10:38:08.058 # WARNING: The TCP backlog setting of 511 cannot be enforced because SOMAXCONN is set to the lower value of 128.
1:M 01 Aug 2015 10:38:08.059 # Server initialized
1:M 01 Aug 2015 10:38:08.064 # Warning: can't mask SIGALRM in bio.c thread: No error information
1:M 01 Aug 2015 10:38:08.064 # Warning: can't mask SIGALRM in bio.c thread: No error information
1:M 01 Aug 2015 10:38:08.065 # Warning: can't mask SIGALRM in bio.c thread: No error information
1:M 01 Aug 2015 10:38:08.066 * Ready to accept connections
1:M 01 Aug 2015 10:38:13.752 # Accepting client connection: accept: Too many open files in system
1:M 01 Aug 2015 10:38:13.754 # Accepting client connection: accept: Too many open files in system
1:M 01 Aug 2015 10:38:13.755 # Accepting client connection: accept: Too many open files in system
1:M 01 Aug 2015 10:38:27.874 # Accepting client connection: accept: Too many open files in system
1:M 01 Aug 2015 10:38:27.875 # Accepting client connection: accept: Too many open files in system
1:M 01 Aug 2015 10:38:27.876 # Accepting client connection: accept: Too many open files in system
@John-Ted John-Ted added the kind/bug Something isn't working label Jul 25, 2023
@benginow
Copy link

benginow commented Apr 5, 2024

Hi! I'm a UT student working on a final project in my virtualization class where we have to contribute to an open source project. I was wondering I could get this issue assigned to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants