You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/07/18 06:59:23 UTC
[GitHub] [skywalking] wu-sheng opened a new issue #7322: Evaluate `new object` V.S. object pool for metric objects.
wu-sheng opened a new issue #7322:
URL: https://github.com/apache/skywalking/issues/7322
The metric objects, such as PercentileMetrics and PercentileFunction are heavy for creating and GC. Because of the DataTable fields, and the number of creations and destruction.
I have seen @kezhenxu94 reported GC cost is high. Notice, this doesn't mean GC stop time is long(the stop time should be less than 1s per minute), but from the profiling results, the GC process costs too much.

**39% of 8U has been detected in GC.**
@kezhenxu94 Let's do another round recheck for the latest codes if this result is consistent. We should begin to evaluate the object pool. From my experiences, reducing the `new object` should help this obviously.
FYI @Ax1an I think you are interested in this topic. cc @wankai123 @hanahmily @mrproliu @dmsolr
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-897276906
Pooling objects (`Source` and `Metrics`) doesn't help a lot in benchmark results.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882020066

This is the point L1 aggregation optimization deployed online.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng edited a comment on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization. Traffic, ~70m segments/hour(Max)

- Yesterday(July 17th). Traffic, ~500m segments/hour(Max). We could see the optimization makes the improvements.
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics. And they have a private fork to use Kafka replaced gRPC between L1 and L2. Even in the latest L1 optimization, this change has very limited improvement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng edited a comment on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization. Traffic, 57m segments/hour(Max)

- Yesterday(July 17th). Traffic, 230m segments/hour(Max). We could see the optimization makes the improvements.
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics. And they have a private fork to use Kafka replaced gRPC between L1 and L2. Even in the latest L1 optimization, this change has very limited improvement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-897284266
In 1.5C CPU cost, the GC increases to 4.22s from 3.85s per minute. So we withdraw this proposal, and keep the current status.
### GC cost of current master

### GC cost of POC version including object pooling

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng edited a comment on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization. Traffic, 77m segments/hour(Max)
Receiver

Aggregator

- Yesterday(July 17th). Traffic, 57m segments/hour(Max). We could see the optimization makes the improvements.
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics. And they have a private fork to use Kafka replaced gRPC between L1 and L2. Even in the latest L1 optimization, this change has very limited improvement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng edited a comment on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization

- Yesterday(Junly 17th)
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics. And they have a private fork to use Kafka replaced gRPC between L1 and L2. Even in the latest L1 optimization, this change has very limited improvement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization

- Yesterday(Junly 17th)
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] lujiajing1126 commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
lujiajing1126 commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882062650
Very interesting work. I am also trying to introduce pooling in Skywalking-BanyanDB these days.
I would follow the discussion in this thread.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng edited a comment on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882019118
Another feedback from @Ax1an
- July 14th. Codes without session enhancement and L1 optimization. Traffic, 77m segments/hour(Max)

- Yesterday(July 17th). Traffic, 57m segments/hour(Max). We could see the optimization makes the improvements.
Receiver

Aggregator

___
Both of these are not including the asynchronous mode for the metrics. And they have a private fork to use Kafka replaced gRPC between L1 and L2. Even in the latest L1 optimization, this change has very limited improvement.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] kezhenxu94 closed issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #7322:
URL: https://github.com/apache/skywalking/issues/7322
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #7322: Evaluate `new object` V.S. object pool for metric objects.
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7322:
URL: https://github.com/apache/skywalking/issues/7322#issuecomment-882023814


We can see from @Ax1an prod env(without asynchronous mode for the metrics), the trends of `heap memory` and `Eden/old Gen` are both fluctuated, which is a piece of evidence we at least should try to do object pooling, and run a comparison.
@kezhenxu94 Let's keep this as a TODO in the next weeks' perf/scale testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org