Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7948

Protocol::write() takes 0.07% in OLTP RO

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1
    • Fix Version/s: 10.1
    • Component/s: None
    • Labels:
      None

      Description

      Data comes from Sandy Bridge system running sysbench OLTP RO in 1 thread against 1 table.

      Call graphs:

      -   0.07%  mysqld  mysqld
         - Protocol::write()
            + 38.69% end_send(JOIN*, st_join_table*, bool)
            + 31.51% select_send::send_result_set_metadata(List<Item>&, unsigned int)
            + 27.18% select_send::send_data(List<Item>&)
            + 1.43% end_send_group(JOIN*, st_join_table*, bool)
            + 1.18% Protocol::send_result_set_metadata(List<Item>*, unsigned int)
      

      A very good candidate for inlining:

      bool Protocol::write()
      {
        DBUG_ENTER("Protocol::write");
        DBUG_RETURN(my_net_write(&thd->net, (uchar*) packet->ptr(),
                                 packet->length()));
      }
      

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                svoj Sergey Vojtovich
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: