Code Monkey home page Code Monkey logo

Comments (18)

benjamingr avatar benjamingr commented on August 13, 2024 3

His question is given the profile in #4422 (comment) "what it means" that Node is spending 63% of time in /usr/bin/node under "shared libraries". Whether or not his results in terms of where the time is spent are good, what he should do in order to analyze those results and how to better figure out where his bottlenecks performance wise are.

The remediation would be to first - profile the full output of --prof rather than just the breakdown which would help identify parts in C++ that are slow. Ideally also run node with the inspector --inspect and use the V8 CPU profiling tools to identify bottlenecks in JS land.

The answer of the 63.3% the guess would be "node's own code in response to what the user is doing" but without the full report it would be hard to tell - which is what Daniel Lemire was trying to explain above.

I think OP is being argumentative and fruitlessly so ( @denyaalt please edit your non-constructive parts in your comments that don't help the discussion). I am leaning more towards closing this issue since discussion isn't happening constructively, but to be honest I can also understand OP's frustration at asking a pretty straightforward question and not getting an answer for a month (though again, this is open source, we're all volunteers, etc etc)

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024 1

Are you kidding?
(...)
If you don't know the answer, please don't comment.

I'm sorry if my comment annoyed you, I was just trying to assess the situation. There is no need to get upset, everyone helping you is a volunteer, so I ask that you maintain a collaborative and respectful demeanor when communicating.


Back to my question, if you still need help identifying a bottleneck, it would help if you gave more information.

As for what shared libraries are, they are libraries that are shared between multiple executables. For example, V8 is NOT a shared library, as it is bundled.

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024 1

The internet has plenty of resources for learning more about shared libraries. If you'd like to suggest an improvement to the profiling report, feel free to open a separate issue.

What more detailed information do I need to provide?

The entire report would be helpful, along with some reproduction code, so we can help find the bottleneck.

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024 1

Again, no specifics, "look for the answer somewhere on the Internet".

Sorry, I didn't mean for that to come off as rude. To reiterate, I don't have the specific details of the profile report, but I'm sure the internet has tons of resources.

Additionally, the @nodejs/performance team may have more information, so let's see what they say.

from help.

preveen-stack avatar preveen-stack commented on August 13, 2024

Can you share the configuration of the machine

from help.

denyaalt avatar denyaalt commented on August 13, 2024

How does the hardware configuration matter in answering my question?
If the hardware is more powerful, it can handle more traffic; if it is weaker, it can handle less.

My question is what does Shared libraries and /usr/bin/node mean in profiling report?

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024

@nodejs/performance (right?)


Also, your hardware/software can help determine whether or not the issue is actually coming from Node.js. There's a lot to learn about the system at hand.

from help.

lemire avatar lemire commented on August 13, 2024

@denyaalt

There is a high CPU load on the node itself, but what does this mean? What is the bottleneck?

If you have a clearly identifiable bottleneck, then the complete report (which you are not providing) should tell you.

from help.

denyaalt avatar denyaalt commented on August 13, 2024

My question is what does Shared libraries and /usr/bin/node mean in profiling report?

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024

My question is what does Shared libraries and /usr/bin/node mean in profiling report?

What about the question you asked originally?:

There is a high CPU load on the node itself, but what does this mean?
What is the bottleneck?

Did you answer this question?

from help.

denyaalt avatar denyaalt commented on August 13, 2024

Are you kidding?
To answer the question, I first need to understand what Shared libraries and /usr/bin/node are in profiling.

If you don't know the answer, please don't comment.

from help.

denyaalt avatar denyaalt commented on August 13, 2024

Where can I read about shared libraries in detail?
Why is there no shared libraries name in the profiling?

What more detailed information do I need to provide?
The full profiling report only shows the names of my functions, they won't give you anything, there are no hints about a bottleneck.

from help.

denyaalt avatar denyaalt commented on August 13, 2024

Again, no specifics, "look for the answer somewhere on the Internet".
The code is not needed for repetition, and you will not repeat it, my question is specifically, what is Shared libraries and /usr/bin/node in the profiling report, that's all!

from help.

denyaalt avatar denyaalt commented on August 13, 2024

In the last 5 years I have seen the degradation of forums more and more, everyone is trying to increase the number of posts, but there is no benefit from the messages, it is a pain.

You commented 5 times and each post is of no use.
Please do not comment anymore...

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024

In the last 5 years I have seen the degradation of forums more and more, everyone is trying to increase the number of posts, but there is no benefit from the messages, it is a pain.

I assure you that is not the case. Everyone commenting here is doing it for your benefit. Everyone here is trying to help you, and I ask that you use respectful and collaborative language when communicating.

You commented 5 times and each post is of no use.
Please do not comment anymore...

I'm sorry you feel that way. While I don't know all the answers, I try my best to get all the information so that those who do will be able to provide help easier.

from help.

RedYetiDev avatar RedYetiDev commented on August 13, 2024

The code is not needed for repetition, and you will not repeat it, my question is specifically, what is Shared libraries and /usr/bin/node in the profiling report, that's all!

It seems to me like your asking a few different questions:

1. What are the different parts of the profiling report?

The Node.js website has a detailed guide about profiling, available at https://nodejs.org/en/learn/getting-started/profiling

2. Why does Node.js use so much of my CPU?

It's hard to tell what part of your code is causing the CPU to be used up, and for that reproducible code would be helpful

3. What's the bottleneck in my code?

Aside from what I said above, if you require assistance with specific code unrelated to the Node.js core, such as dependencies, alternative resources may help, such as StackOverflow


Is there anything else you need?

from help.

benjamingr avatar benjamingr commented on August 13, 2024

@denyaalt since you may have not seen my message when you posted yours, I am putting my moderator hat on - giving you one final opportunity to edit your messages and have a constructive conversation rather than escalate this and not have a discussion at all.

from help.

denyaalt avatar denyaalt commented on August 13, 2024

RedYetiDev, dude, get some work done and stop sending useless messages.

V8 CPU profiling will show only JavaScript load, and this is only 9.8% of the profiling report.
In general, it is useless to discuss anything.

I write again:
The full profiling report only shows the names of my functions, they won't give you anything, there are no hints about a bottleneck.

What are Shared Libraries and /usr/bin/node in the profiling report?
If you don't know the answer, please don't comment!

from help.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.