Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

317
Vistas
MongoDb Performance on Raspberry Pi 2

I have MongoDb running in a NodeJS app using Monk on a Raspberry Pi 2 with raspbian.

While it behaves properly, the database access is stunningly slow.

I habe roughly 1.7 million documents in one table. I call simple values (last record according to a timestamp) and little more complex (aggregate 30 values). The app writes 2 new entries per second (permantly, it's sort of logging). The client asks for some values, 1-3 per second.

The very simple takes roughly 8 seconds, the little more complex 20 seconds. It does not change over time. CPU is under load, 30 to 75% permanently, I serve just one (1) client via WiFi.

When the results return, the values are correct.

Version information:

  • MongoDb: v2.4.10
  • Monk: v3.1.3
  • Node: v6.3.1
  • OS: Raspbian GNU/Linux 8 (jessie)
  • Kernel: raspberrypi 4.4.11.-v7+

Question:

Is known that it's that slow on Raspberry 2 with > 1 mio records and 2-4 requests per second? Or is there something I could do?

The app is completely naive, very straight.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

When you look at performance in a Raspberry PI you have to take care of two important limitation:

  1. RAM: you have only 1GB of RAM on model 2. In your use case maybe the DB index is paginated from SD card and RAM.
  2. SD: you don't have a full Sata interface like a normal desktop PC. Read and write from SD is a lot slower than any normal HD. You could try with a higher class SD card.

Said that we can't make any more precise analysis without the details of DB, query and program. What you can do is to use "top" or any similar command to show the usage of RAM, the CPU load and the IO from disk.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda