diff --git a/blobstore/api/shardnode/shardnode.pb.go b/blobstore/api/shardnode/shardnode.pb.go index 29dafb421..c82fe5460 100644 --- a/blobstore/api/shardnode/shardnode.pb.go +++ b/blobstore/api/shardnode/shardnode.pb.go @@ -2269,6 +2269,92 @@ func (m *ListShardRet) GetShards() []clustermgr.ShardUnitInfo { return nil } +type TCMallocArgs struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TCMallocArgs) Reset() { *m = TCMallocArgs{} } +func (m *TCMallocArgs) String() string { return proto.CompactTextString(m) } +func (*TCMallocArgs) ProtoMessage() {} +func (*TCMallocArgs) Descriptor() ([]byte, []int) { + return fileDescriptor_9d3815ca0e5f30f0, []int{40} +} +func (m *TCMallocArgs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TCMallocArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TCMallocArgs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TCMallocArgs) XXX_Merge(src proto.Message) { + xxx_messageInfo_TCMallocArgs.Merge(m, src) +} +func (m *TCMallocArgs) XXX_Size() int { + return m.Size() +} +func (m *TCMallocArgs) XXX_DiscardUnknown() { + xxx_messageInfo_TCMallocArgs.DiscardUnknown(m) +} + +var xxx_messageInfo_TCMallocArgs proto.InternalMessageInfo + +type TCMallocRet struct { + Stats string `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TCMallocRet) Reset() { *m = TCMallocRet{} } +func (m *TCMallocRet) String() string { return proto.CompactTextString(m) } +func (*TCMallocRet) ProtoMessage() {} +func (*TCMallocRet) Descriptor() ([]byte, []int) { + return fileDescriptor_9d3815ca0e5f30f0, []int{41} +} +func (m *TCMallocRet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TCMallocRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TCMallocRet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TCMallocRet) XXX_Merge(src proto.Message) { + xxx_messageInfo_TCMallocRet.Merge(m, src) +} +func (m *TCMallocRet) XXX_Size() int { + return m.Size() +} +func (m *TCMallocRet) XXX_DiscardUnknown() { + xxx_messageInfo_TCMallocRet.DiscardUnknown(m) +} + +var xxx_messageInfo_TCMallocRet proto.InternalMessageInfo + +func (m *TCMallocRet) GetStats() string { + if m != nil { + return m.Stats + } + return "" +} + func init() { proto.RegisterType((*Item)(nil), "cubefs.blobstore.api.shardnode.Item") proto.RegisterType((*Field)(nil), "cubefs.blobstore.api.shardnode.Field") @@ -2310,101 +2396,105 @@ func init() { proto.RegisterType((*ListVolumeRet)(nil), "cubefs.blobstore.api.shardnode.ListVolumeRet") proto.RegisterType((*ListShardArgs)(nil), "cubefs.blobstore.api.shardnode.ListShardArgs") proto.RegisterType((*ListShardRet)(nil), "cubefs.blobstore.api.shardnode.ListShardRet") + proto.RegisterType((*TCMallocArgs)(nil), "cubefs.blobstore.api.shardnode.TCMallocArgs") + proto.RegisterType((*TCMallocRet)(nil), "cubefs.blobstore.api.shardnode.TCMallocRet") } func init() { proto.RegisterFile("shardnode.proto", fileDescriptor_9d3815ca0e5f30f0) } var fileDescriptor_9d3815ca0e5f30f0 = []byte{ - // 1424 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4d, 0x6f, 0x1b, 0xc5, - 0x1b, 0xff, 0xaf, 0xb3, 0x76, 0x92, 0x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, 0x81, 0x41, - 0x79, 0x17, 0xac, 0xae, 0xcf, 0x02, 0x4a, 0xda, 0x18, 0x10, 0x1c, 0x95, 0xd3, 0x45, 0xb2, 0x28, - 0xe5, 0x91, 0xe4, 0xb6, 0xa0, 0x34, 0x0e, 0x9f, 0xe8, 0xd4, 0x71, 0x8e, 0x8c, 0x13, 0xe7, 0xe8, - 0xaf, 0x3c, 0x00, 0x06, 0xb5, 0xc5, 0x7d, 0x9e, 0x64, 0xb7, 0xaf, 0x71, 0xa6, 0x9b, 0xcc, 0x25, - 0x28, 0xf9, 0x83, 0x41, 0xc0, 0x28, 0x69, 0xb3, 0x90, 0xd0, 0x87, 0xaa, 0xfa, 0x2c, 0x45, 0x6c, - 0x0a, 0x9a, 0xed, 0x40, 0x31, 0xc0, 0x44, 0xb6, 0xf7, 0xa2, 0x84, 0x63, 0xb6, 0x16, 0x3d, 0x90, - 0xa4, 0xdb, 0x51, 0xc2, 0xed, 0x01, 0x94, 0x15, 0x83, 0xde, 0x3f, 0x4c, 0xcc, 0xe8, 0x9d, 0x51, - 0xea, 0x58, 0x72, 0x61, 0x39, 0xf5, 0x16, 0x62, 0x05, 0x63, 0x3d, 0xc4, 0xee, 0x65, 0x90, 0x30, - 0x28, 0xf9, 0xec, 0x2b, 0x1a, 0x48, 0x73, 0xa7, 0x0a, 0x8d, 0x72, 0x4d, 0x3c, 0xdb, 0x15, 0x98, - 0x0f, 0xa8, 0x1f, 0x87, 0x34, 0xae, 0x14, 0x56, 0x8d, 0xb5, 0x05, 0x4f, 0x1f, 0x9f, 0x7d, 0xdf, - 0x99, 0x9f, 0xc9, 0x97, 0xa8, 0xec, 0x1d, 0x6f, 0xe1, 0x2c, 0xde, 0xf1, 0x16, 0x4f, 0xf7, 0x8e, - 0xd7, 0x80, 0x85, 0xd8, 0xef, 0x72, 0x51, 0x91, 0x15, 0x40, 0x3c, 0xee, 0x91, 0x78, 0xf0, 0xcb, - 0xae, 0xe0, 0x54, 0x2a, 0x32, 0x49, 0xf7, 0x00, 0xca, 0xe2, 0x5a, 0xdb, 0x89, 0x82, 0x61, 0x5f, - 0x4e, 0x9b, 0xc9, 0x61, 0x60, 0xcc, 0x70, 0x18, 0xb8, 0x04, 0x4a, 0x63, 0xd3, 0xa2, 0x53, 0x5b, - 0x60, 0x3e, 0x60, 0x44, 0xf6, 0x69, 0xa9, 0x7e, 0x5d, 0xb4, 0xd5, 0x0e, 0x23, 0xc9, 0x61, 0xea, - 0x5c, 0x9d, 0x36, 0x89, 0x3b, 0xa2, 0xab, 0x84, 0x32, 0xf7, 0x5b, 0x43, 0x9a, 0x39, 0xb7, 0xd5, - 0x3c, 0x5b, 0x1f, 0x72, 0x93, 0xeb, 0xc3, 0x17, 0x72, 0xc3, 0xc9, 0x76, 0xeb, 0x6d, 0x28, 0x60, - 0x91, 0xe8, 0xa9, 0x74, 0xb2, 0xe5, 0x5a, 0xe9, 0xa8, 0x2f, 0x3f, 0x1e, 0xad, 0x18, 0x7f, 0x8c, - 0x56, 0x8c, 0xbf, 0x47, 0x2b, 0xc6, 0xe7, 0x56, 0xb5, 0x76, 0x2d, 0xbb, 0x0c, 0x76, 0x0b, 0x88, - 0xf2, 0xea, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xe5, 0x97, 0xae, 0xc8, 0x18, 0x00, 0x00, + // 1453 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4f, 0x6f, 0x1b, 0xd5, + 0x16, 0x7f, 0xe3, 0x8c, 0x9d, 0xe4, 0x78, 0xec, 0x3c, 0x8d, 0xa2, 0x3e, 0x2b, 0xd2, 0xcb, 0x44, + 0xd3, 0x3e, 0x35, 0x7a, 0x80, 0x2d, 0xa5, 0x08, 0x16, 0x05, 0xda, 0x38, 0x51, 0x5b, 0x37, 0x09, + 0x88, 0x71, 0x1a, 0x09, 0x04, 0xb2, 0x26, 0xbe, 0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, 0x69, 0x14, 0x0e, 0x11, 0xec, 0xf7, 0xc1, 0x14, + 0x36, 0x55, 0x2c, 0xae, 0x9e, 0x78, 0x7d, 0xc8, 0xa4, 0x09, 0x29, 0xdd, 0xe9, 0x82, 0xc5, 0x8d, + 0x30, 0x75, 0x97, 0x16, 0x5b, 0x77, 0x0b, 0xf7, 0xa2, 0x0b, 0x02, 0xaf, 0xd7, 0xa2, 0xe9, 0xc0, + 0xbf, 0x98, 0xb5, 0x28, 0x92, 0x6b, 0x91, 0xf6, 0xf8, 0x16, 0xe4, 0x11, 0x8b, 0x5a, 0x8b, 0x26, + 0x70, 0x59, 0xca, 0x9d, 0xba, 0x15, 0x7d, 0xa9, 0x97, 0xee, 0xcb, 0xcb, 0x69, 0xb6, 0x70, 0x2b, + 0x27, 0xdd, 0x6f, 0x0c, 0x28, 0x7b, 0x94, 0xfb, 0x41, 0x74, 0x79, 0x4d, 0xbb, 0x08, 0xf9, 0x90, + 0xfa, 0x4c, 0x76, 0xac, 0xe9, 0xc9, 0x83, 0x80, 0x36, 0x02, 0x22, 0xa0, 0xfd, 0x6a, 0x80, 0xd5, + 0xa4, 0x7e, 0x38, 0x35, 0x60, 0xd8, 0xb6, 0xb9, 0xb1, 0x86, 0xd6, 0x60, 0x67, 0xc6, 0xc0, 0xd6, + 0xa1, 0x80, 0x2d, 0xad, 0x17, 0xb6, 0x6b, 0xa7, 0x94, 0x41, 0x53, 0x30, 0x6b, 0x5b, 0x52, 0x52, + 0x2c, 0x51, 0xda, 0x11, 0xe1, 0xd8, 0xcf, 0x39, 0x28, 0xaf, 0x87, 0x61, 0xdc, 0x46, 0xde, 0x7f, + 0xc0, 0xa0, 0xdc, 0x01, 0xab, 0xe3, 0x07, 0x21, 0x25, 0x2d, 0x0c, 0x08, 0x8e, 0xca, 0xc9, 0x22, + 0x59, 0x94, 0xf2, 0x48, 0x72, 0x9b, 0x50, 0x1a, 0x85, 0x4f, 0x74, 0xea, 0x28, 0x47, 0xc6, 0x99, +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xf6, 0x69, 0xa9, 0x7e, 0x4b, 0xb4, 0xd5, 0x5e, 0x40, 0xd8, + 0x71, 0xea, 0xdc, 0x98, 0x34, 0x89, 0x7b, 0xa2, 0xab, 0x84, 0x32, 0xf7, 0x6b, 0x43, 0x9a, 0xb9, + 0xb4, 0xd5, 0x3c, 0x5b, 0x1f, 0x72, 0xe3, 0xeb, 0xc3, 0x67, 0x72, 0xc3, 0xc9, 0x76, 0xeb, 0x6d, + 0x28, 0x60, 0x91, 0xe8, 0xa9, 0x74, 0xb6, 0xe5, 0x5a, 0xe9, 0x70, 0xcb, 0x60, 0xed, 0x6e, 0xec, + 0xf8, 0x62, 0xee, 0x09, 0x17, 0xdd, 0xab, 0x50, 0xd4, 0x67, 0x61, 0x6c, 0x11, 0xf2, 0x4c, 0x0c, + 0x2e, 0xf4, 0x77, 0xde, 0x93, 0x87, 0xfa, 0xd2, 0x93, 0xe1, 0xb2, 0xf1, 0xdb, 0x70, 0xd9, 0xf8, + 0x73, 0xb8, 0x6c, 0x7c, 0x6a, 0x55, 0x6b, 0x37, 0xb3, 0x1b, 0x64, 0xbf, 0x80, 0xae, 0xdd, 0xf8, + 0x2b, 0x00, 0x00, 0xff, 0xff, 0x93, 0xa6, 0x85, 0xf7, 0xfd, 0x18, 0x00, 0x00, } func (m *Item) Marshal() (dAtA []byte, err error) { @@ -4155,6 +4245,67 @@ func (m *ListShardRet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *TCMallocArgs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TCMallocArgs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TCMallocArgs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + return len(dAtA) - i, nil +} + +func (m *TCMallocRet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TCMallocRet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TCMallocRet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.XXX_unrecognized != nil { + i -= len(m.XXX_unrecognized) + copy(dAtA[i:], m.XXX_unrecognized) + } + if len(m.Stats) > 0 { + i -= len(m.Stats) + copy(dAtA[i:], m.Stats) + i = encodeVarintShardnode(dAtA, i, uint64(len(m.Stats))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintShardnode(dAtA []byte, offset int, v uint64) int { offset -= sovShardnode(v) base := offset @@ -4926,6 +5077,34 @@ func (m *ListShardRet) Size() (n int) { return n } +func (m *TCMallocArgs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *TCMallocRet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Stats) + if l > 0 { + n += 1 + l + sovShardnode(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + func sovShardnode(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -9353,6 +9532,140 @@ func (m *ListShardRet) Unmarshal(dAtA []byte) error { } return nil } +func (m *TCMallocArgs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShardnode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TCMallocArgs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TCMallocArgs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipShardnode(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthShardnode + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TCMallocRet) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShardnode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TCMallocRet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TCMallocRet: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowShardnode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthShardnode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthShardnode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Stats = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipShardnode(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthShardnode + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipShardnode(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/blobstore/api/shardnode/shardnode.proto b/blobstore/api/shardnode/shardnode.proto index b6e997390..3580e80ce 100644 --- a/blobstore/api/shardnode/shardnode.proto +++ b/blobstore/api/shardnode/shardnode.proto @@ -222,4 +222,12 @@ message ListShardArgs { message ListShardRet { repeated cubefs.blobstore.api.clustermgr.ShardUnitInfo shards = 1 [(gogoproto.nullable) = false]; +} + +message TCMallocArgs { + +} + +message TCMallocRet { + string stats = 1; } \ No newline at end of file diff --git a/blobstore/api/shardnode/tcmalloc.go b/blobstore/api/shardnode/tcmalloc.go new file mode 100644 index 000000000..9be863d80 --- /dev/null +++ b/blobstore/api/shardnode/tcmalloc.go @@ -0,0 +1,32 @@ +// Copyright 2024 The CubeFS Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +// implied. See the License for the specific language governing +// permissions and limitations under the License. + +package shardnode + +import "context" + +func (c *Client) TCMallocStats(ctx context.Context, host string, args TCMallocArgs) (ret TCMallocRet, err error) { + err = c.doRequest(ctx, host, "/tcmalloc/stats", &args, &ret) + return +} + +func (c *Client) TCMallocFree(ctx context.Context, host string, args TCMallocArgs) (ret TCMallocRet, err error) { + err = c.doRequest(ctx, host, "/tcmalloc/free", &args, &ret) + return +} + +func (c *Client) TCMallocRate(ctx context.Context, host string, args TCMallocArgs) (ret TCMallocRet, err error) { + err = c.doRequest(ctx, host, "/tcmalloc/rate", &args, &ret) + return +} diff --git a/blobstore/cli/shardnode/shardnode.go b/blobstore/cli/shardnode/shardnode.go index 385c28f1f..c23a27b88 100644 --- a/blobstore/cli/shardnode/shardnode.go +++ b/blobstore/cli/shardnode/shardnode.go @@ -26,4 +26,5 @@ func Register(app *grumble.App) { app.AddCommand(snCommand) addCmdVol(snCommand) addCmdShard(snCommand) + addCmdTCMalloc(snCommand) } diff --git a/blobstore/cli/shardnode/tcmalloc.go b/blobstore/cli/shardnode/tcmalloc.go new file mode 100644 index 000000000..8bedf7a67 --- /dev/null +++ b/blobstore/cli/shardnode/tcmalloc.go @@ -0,0 +1,73 @@ +// Copyright 2024 The CubeFS Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +// implied. See the License for the specific language governing +// permissions and limitations under the License. + +package shardnode + +import ( + "errors" + + "github.com/cubefs/cubefs/blobstore/api/shardnode" + "github.com/cubefs/cubefs/blobstore/cli/common" + "github.com/cubefs/cubefs/blobstore/cli/common/args" + "github.com/cubefs/cubefs/blobstore/cli/common/fmt" + "github.com/cubefs/cubefs/blobstore/common/rpc2" + "github.com/desertbit/grumble" +) + +func addCmdTCMalloc(cmd *grumble.Command) { + tcMallocCommand := &grumble.Command{ + Name: "tcmalloc", + Help: "tcmalloc tools", + LongHelp: "tcmalloc tools for shardNode", + } + cmd.AddCommand(tcMallocCommand) + + tcMallocCommand.AddCommand(&grumble.Command{ + Name: "stats", + Help: "tcmalloc stats", + Args: func(a *grumble.Args) { + args.NodeHostRegister(a) + a.String("op", "stats, free or rate") + }, + Run: cmdTCMallocStats, + }) +} + +func cmdTCMallocStats(c *grumble.Context) error { + ctx := common.CmdContext() + host := args.NodeHost(c.Args) + op := c.Args.String("op") + + var ( + ret shardnode.TCMallocRet + err error + ) + cli := shardnode.New(rpc2.Client{}) + args := shardnode.TCMallocArgs{} + switch op { + case "stats": + ret, err = cli.TCMallocStats(ctx, host, args) + case "free": + ret, err = cli.TCMallocFree(ctx, host, args) + case "rate": + ret, err = cli.TCMallocRate(ctx, host, args) + default: + err = errors.New("unknown op of tcmalloc") + } + if err != nil { + return err + } + fmt.Println(ret.Stats) + return nil +} diff --git a/blobstore/cmd/shardnode/main.go b/blobstore/cmd/shardnode/main.go index cce908918..84cd942fc 100644 --- a/blobstore/cmd/shardnode/main.go +++ b/blobstore/cmd/shardnode/main.go @@ -18,6 +18,7 @@ import ( "os" "github.com/cubefs/cubefs/blobstore/cmd" + _ "github.com/cubefs/cubefs/blobstore/common/tcmalloc" _ "github.com/cubefs/cubefs/blobstore/shardnode" ) diff --git a/blobstore/common/tcmalloc/tcmalloc.go b/blobstore/common/tcmalloc/tcmalloc.go new file mode 100644 index 000000000..8df7238cb --- /dev/null +++ b/blobstore/common/tcmalloc/tcmalloc.go @@ -0,0 +1,33 @@ +// Copyright 2023 The Cuber Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +// implied. See the License for the specific language governing +// permissions and limitations under the License. + +package tcmalloc + +/* +#include "tcmalloc_manage.h" +*/ +import "C" + +func Stats() string { + cValue := C.tcmalloc_stats() + return C.GoString(cValue) +} + +func Free() { + C.tcmalloc_free() +} + +func MemoryReleaseRate() float64 { + return float64(C.tcmalloc_memory_release_rate()) +} diff --git a/blobstore/common/tcmalloc/tcmalloc_manage.cc b/blobstore/common/tcmalloc/tcmalloc_manage.cc new file mode 100644 index 000000000..dc93eb09c --- /dev/null +++ b/blobstore/common/tcmalloc/tcmalloc_manage.cc @@ -0,0 +1,33 @@ +// Copyright 2023 The Cuber Authors. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +// implied. See the License for the specific language governing +// permissions and limitations under the License. + +#include "gperftools/malloc_extension.h" + +extern "C" { + #include "tcmalloc_manage.h" +} + +char* tcmalloc_stats() { + static char stats[2048]; + MallocExtension::instance()->GetStats(stats, 2048); + return stats; +} + +void tcmalloc_free() { + MallocExtension::instance()->ReleaseFreeMemory(); +} + +double tcmalloc_memory_release_rate() { + return MallocExtension::instance()->GetMemoryReleaseRate(); +} \ No newline at end of file diff --git a/blobstore/common/tcmalloc/tcmalloc_manage.h b/blobstore/common/tcmalloc/tcmalloc_manage.h new file mode 100644 index 000000000..78a4142ec --- /dev/null +++ b/blobstore/common/tcmalloc/tcmalloc_manage.h @@ -0,0 +1,19 @@ +/* + * Copyright 2023 The Cuber Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +char* tcmalloc_stats(); +void tcmalloc_free(); +double tcmalloc_memory_release_rate(); \ No newline at end of file diff --git a/blobstore/shardnode/rpcservice.go b/blobstore/shardnode/rpcservice.go index 61177eb32..1ee649a1a 100644 --- a/blobstore/shardnode/rpcservice.go +++ b/blobstore/shardnode/rpcservice.go @@ -20,6 +20,7 @@ import ( "github.com/cubefs/cubefs/blobstore/common/config" "github.com/cubefs/cubefs/blobstore/common/proto" "github.com/cubefs/cubefs/blobstore/common/rpc2" + "github.com/cubefs/cubefs/blobstore/common/tcmalloc" "github.com/cubefs/cubefs/blobstore/util/errors" ) @@ -348,6 +349,29 @@ func (s *RpcService) ListVolume(w rpc2.ResponseWriter, req *rpc2.Request) error return w.WriteOK(ret) } +func (s *RpcService) TCMallocStats(w rpc2.ResponseWriter, req *rpc2.Request) error { + ret := &shardnode.TCMallocRet{ + Stats: tcmalloc.Stats(), + } + return w.WriteOK(ret) +} + +func (s *RpcService) TCMallocFree(w rpc2.ResponseWriter, req *rpc2.Request) error { + tcmalloc.Free() + ret := &shardnode.TCMallocRet{ + Stats: tcmalloc.Stats(), + } + return w.WriteOK(ret) +} + +func (s *RpcService) TCMallocMemoryReleaseRate(w rpc2.ResponseWriter, req *rpc2.Request) error { + tcmalloc.MemoryReleaseRate() + ret := &shardnode.TCMallocRet{ + Stats: tcmalloc.Stats(), + } + return w.WriteOK(ret) +} + func initConfig(args []string) (*cmd.Config, error) { config.Init("f", "", "shardnode.conf") if err := config.Load(&conf); err != nil { @@ -383,6 +407,10 @@ func newHandler(s *RpcService) *rpc2.Router { handler.Register("/shard/list", s.ListShard) handler.Register("/volume/list", s.ListVolume) + handler.Register("/tcmalloc/stats", s.TCMallocStats) + handler.Register("/tcmalloc/free", s.TCMallocFree) + handler.Register("/tcmalloc/rate", s.TCMallocMemoryReleaseRate) + return handler } diff --git a/build/build.sh b/build/build.sh index ba7331128..ef20aa172 100755 --- a/build/build.sh +++ b/build/build.sh @@ -14,6 +14,7 @@ if [ "${use_clang}" != "" ]; then cgo_ldflags="-L${BuildDependsLibPath} -lrocksdb -lz -lbz2 -lsnappy -llz4 -lzstd -lc++" fi cgo_cflags="-I${BuildDependsIncludePath}" +cgo_cxxflags="-I${BuildDependsIncludePath}" MODFLAGS="" gomod=${2:-"on"} @@ -185,6 +186,27 @@ build_snappy() { popd } +build_tcmalloc() { + TCMALLOC_VER=2.9.1 + if [ -f "${BuildDependsLibPath}/libtcmalloc.a" ]; then + return 0 + fi + + if [ ! -d ${BuildOutPath}/gperftools-gperftools-${TCMALLOC_VER} ]; then + tar -zxf ${DependsPath}/gperftools-gperftools-${TCMALLOC_VER}.tar.gz -C ${BuildOutPath} + fi + + echo "build tcmalloc..." + # mkdir ${BuildOutPath}/gperftools-gperftools-${TCMALLOC_VER} + pushd ${BuildOutPath}/gperftools-gperftools-${TCMALLOC_VER} + ./autogen.sh + CFLAGS='-fPIC' ./configure --enable-frame-pointers + make -j ${PROCESSOR_NUMS} + cp -f .libs/libtcmalloc.a ${BuildDependsLibPath} + cp -rf src/gperftools ${BuildDependsIncludePath} + popd +} + build_rocksdb() { ROCKSDB_VER=6.3.6 if [ -f "${BuildDependsLibPath}/librocksdb.a" ]; then @@ -242,14 +264,24 @@ pre_build() { build_lz4 $1 build_zstd $1 build_snappy $1 + build_tcmalloc $1 build_rocksdb $1 export CGO_CFLAGS=${cgo_cflags} export CGO_LDFLAGS="${cgo_ldflags}" + export CGO_CXXFLAGS=${cgo_cxxflags} init_gopath } +build_with_tcmalloc() { + cgo_ldflags_tcmalloc="-L${BuildDependsLibPath} -ldl -ltcmalloc -lm -lrocksdb -lz -lbz2 -lsnappy -llz4 -lzstd -lstdc++" + if [ "${use_clang}" != "" ]; then + cgo_ldflags_tcmalloc="-L${BuildDependsLibPath} -ldl -ltcmalloc -lm -lrocksdb -lz -lbz2 -lsnappy -llz4 -lzstd -lc++" + fi + export CGO_LDFLAGS="${cgo_ldflags_tcmalloc}" +} + run_test() { pushd $SrcPath >/dev/null export JENKINS_TEST=1 @@ -317,7 +349,9 @@ build_blobstore_cli() { build_shardnode() { pushd $SrcPath/blobstore/cmd/shardnode >/dev/null + build_with_tcmalloc CGO_ENABLED=1 go build ${MODFLAGS} -gcflags=all=-trimpath=${BlobPath} -asmflags=all=-trimpath=${BlobPath} -ldflags="${LDFlags}" -o ${BuildBinPath}/blobstore . + export CGO_LDFLAGS="${cgo_ldflags}" popd >/dev/null } diff --git a/depends/gperftools-gperftools-2.9.1.tar.gz b/depends/gperftools-gperftools-2.9.1.tar.gz new file mode 100644 index 000000000..ea414bade Binary files /dev/null and b/depends/gperftools-gperftools-2.9.1.tar.gz differ