Project

General

Profile

Actions

Feature #55121

closed

cephfs-top: new options to limit and order-by

Added by Jos Collin about 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
backport_processed
Backport:
quincy, pacific
Reviewed:
Affected Versions:
Component(FS):
cephfs-top
Labels (FS):
task(medium)
Pull request ID:

Description

Based on the suggestion in the BZ [1], create two new options for cephfs-top:

1. Limit the number of clients to be displayed on the terminal, so that the user can judge the limit value based on the terminal zoom-in/font-size. ncurses could display lesser number of clients for a higher zoom-in/font-size on the terminal.
2. An order-by option to display clients in the descending order based on the field selected, preferably top's 'f' like window to select fields. The default order should be 'cap hit'.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2067168


Related issues 3 (0 open3 closed)

Related to CephFS - Feature #55463: cephfs-top: allow users to chose sorting orderDuplicateNeeraj Pratap Singh

Actions
Copied to CephFS - Backport #57970: quincy: cephfs-top: new options to limit and order-byResolvedNeeraj Pratap SinghActions
Copied to CephFS - Backport #57971: pacific: cephfs-top: new options to limit and order-byResolvedNeeraj Pratap SinghActions
Actions #1

Updated by Venky Shankar about 2 years ago

  • Tracker changed from Bug to Feature
  • Assignee set to Jos Collin
  • Target version set to v18.0.0
  • Backport set to quincy, pacific
Actions #2

Updated by Jos Collin about 2 years ago

  • Description updated (diff)
Actions #3

Updated by Jos Collin almost 2 years ago

  • Status changed from New to Closed

Based on my discussion with Greg, I'm closing this ticket. Because the issue that the customer reported in BZ1 is pagination and the tracker [2] is meant to resolve that issue. As per our discussion, the goal the customer has is to see all the clients and providing the limit option still restricts the number of clients which doesn't really solve the customer's issue.

[2] https://tracker.ceph.com/issues/55197

Actions #4

Updated by Venky Shankar almost 2 years ago

  • Status changed from Closed to New

Jos Collin wrote:

Based on my discussion with Greg, I'm closing this ticket. Because the issue that the customer reported in BZ1 is pagination and the tracker [2] is meant to resolve that issue. As per our discussion, the goal the customer has is to see all the clients and providing the limit option still restricts the number of clients which doesn't really solve the customer's issue.

[2] https://tracker.ceph.com/issues/55197

I disagree closing this tracker. The use of limit and order-by is to allow the user to list client according to a field (say descending order of cap hit ratio) and limit this by top N (say, 10) clients. Ins't that useful? With pagination, users would be able to scroll and view the entire client list, however, IMO, its useful to provide the user a way to sort and limit based on a particular field.

Actions #5

Updated by Greg Farnum almost 2 years ago

Can't fs top already change the sort order? I thought that was done in Neeraj's first tranche of improvements.

Actions #6

Updated by Jos Collin almost 2 years ago

Greg Farnum wrote:

Can't fs top already change the sort order? I thought that was done in Neeraj's first tranche of improvements.

Another thing to notice here:
Before Neeraj's changes (first tranche of improvements), cephfs-top was displaying the clients in the descending order of resource usage. But that order doesn't exist anymore as it displays clients separately for each Filesystem now (say fs groups). That seems deviating from the original goal of having cephfs-top (highest resources usage on top).

As we are implementing top(1) like features for cephfs-top, top(1) always displays processes in the descending order of CPU usage. The 'f' menu in top(1) is just for selecting fields to display (Fields Management). As a result, it doesn't change the sort order in top(1) it's always descending order of CPU usage. So is it worth implementing for cephfs-top?

Actions #7

Updated by Neeraj Pratap Singh almost 2 years ago

Venky Shankar wrote:

Jos Collin wrote:

Based on my discussion with Greg, I'm closing this ticket. Because the issue that the customer reported in BZ1 is pagination and the tracker [2] is meant to resolve that issue. As per our discussion, the goal the customer has is to see all the clients and providing the limit option still restricts the number of clients which doesn't really solve the customer's issue.

[2] https://tracker.ceph.com/issues/55197

I disagree closing this tracker. The use of limit and order-by is to allow the user to list client according to a field (say descending order of cap hit ratio) and limit this by top N (say, 10) clients. Ins't that useful? With pagination, users would be able to scroll and view the entire client list, however, IMO, its useful to provide the user a way to sort and limit based on a particular field.

I think choosing the field based on which the sorting needs to be done will be taken care of by https://tracker.ceph.com/issues/55463 and desc order can be kept as default.But the order-by can handle if someone wants it to be in another order.

Actions #8

Updated by Neeraj Pratap Singh almost 2 years ago

Jos Collin wrote:

Greg Farnum wrote:

Can't fs top already change the sort order? I thought that was done in Neeraj's first tranche of improvements.

Another thing to notice here:
Before Neeraj's changes (first tranche of improvements), cephfs-top was displaying the clients in the descending order of resource usage. But that order doesn't exist anymore as it displays clients separately for each Filesystem now (say fs groups). That seems deviating from the original goal of having cephfs-top (highest resources usage on top).

As we are implementing top(1) like features for cephfs-top, top(1) always displays processes in the descending order of CPU usage. The 'f' menu in top(1) is just for selecting fields to display (Fields Management). As a result, it doesn't change the sort order in top(1) it's always descending. So is it worth implementing for cephfs-top?

I don't think cephfs-top was displaying the clients in the descending order of resource usage.Venky mentioned the client connection order,see the description of https://tracker.ceph.com/issues/55463

Actions #9

Updated by Jos Collin almost 2 years ago

Neeraj Pratap Singh wrote:

Jos Collin wrote:

Greg Farnum wrote:

Can't fs top already change the sort order? I thought that was done in Neeraj's first tranche of improvements.

Another thing to notice here:
Before Neeraj's changes (first tranche of improvements), cephfs-top was displaying the clients in the descending order of resource usage. But that order doesn't exist anymore as it displays clients separately for each Filesystem now (say fs groups). That seems deviating from the original goal of having cephfs-top (highest resources usage on top).

As we are implementing top(1) like features for cephfs-top, top(1) always displays processes in the descending order of CPU usage. The 'f' menu in top(1) is just for selecting fields to display (Fields Management). As a result, it doesn't change the sort order in top(1) it's always descending. So is it worth implementing for cephfs-top?

I don't think cephfs-top was displaying the clients in the descending order of resource usage.Venky mentioned the client connection order,see the description of https://tracker.ceph.com/issues/55463

There is no point in having a cephfs-top tool, if it doesn't display the top clients. As per top(1) it should be a constant field say wsp(MB/s), IMO. Then if Fields Management is there, then the user can add/remove fields. Still the Fields Management doesn't make sense for lesser number of fields that cephfs-top has (only 20 fields, which the screen accommodates mostly).

Actions #10

Updated by Venky Shankar almost 2 years ago

Having a `sort-by-field` option is handy for the point I mentioned in https://tracker.ceph.com/issues/55121#note-4. The `limit` functionality is kind of closely tied with `sort-by` (using `limit` without `sort-by` does not really makes sense).

Actions #11

Updated by Venky Shankar almost 2 years ago

  • Related to Feature #55463: cephfs-top: allow users to chose sorting order added
Actions #12

Updated by Jos Collin over 1 year ago

Jos Collin wrote:

Greg Farnum wrote:

Can't fs top already change the sort order? I thought that was done in Neeraj's first tranche of improvements.

Another thing to notice here:
Before Neeraj's changes (first tranche of improvements), cephfs-top was displaying the clients in the descending order of resource usage. But that order doesn't exist anymore as it displays clients separately for each Filesystem now (say fs groups). That seems deviating from the original goal of having cephfs-top (highest resources usage on top).

As we are implementing top(1) like features for cephfs-top, top(1) always displays processes in the descending order of CPU usage. The 'f' menu in top(1) is just for selecting fields to display (Fields Management). As a result, it doesn't change the sort order in top(1) it's always descending order of CPU usage. So is it worth implementing for cephfs-top?

My understanding was wrong here. There is an 's' command to reset the default sort field.

Actions #13

Updated by Venky Shankar over 1 year ago

  • Assignee changed from Jos Collin to Neeraj Pratap Singh

Neeraj is working on this.

Actions #14

Updated by Neeraj Pratap Singh over 1 year ago

  • Pull request ID set to 48111
Actions #15

Updated by Neeraj Pratap Singh over 1 year ago

  • Status changed from New to Fix Under Review
Actions #16

Updated by Jos Collin over 1 year ago

  • Status changed from Fix Under Review to Pending Backport
Actions #17

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57970: quincy: cephfs-top: new options to limit and order-by added
Actions #18

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57971: pacific: cephfs-top: new options to limit and order-by added
Actions #19

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #20

Updated by Neeraj Pratap Singh about 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF