Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/vdo/statistics/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 x?ag� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlT ddlT ddlT G dd � d e�Z G d d� de�Z G dd � d e�ZG dd� de�ZdS )a� Copyright Red Hat This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. � )�absolute_import)�division)�print_function)�unicode_literals� )�*c s e Zd Zd� fdd� Z� ZS )�BioStatsc s@ t t| �j|td�td�td�td�td�gfddi|�� d S )N�read�write�discard�flushZfua�procRoot�vdo)�superr �__init__�Uint64Field)�self�name�kwargs)� __class__� �&/usr/lib/python3.6/KernelStatistics.pyr s zBioStats.__init__)r )�__name__� __module__�__qualname__r � __classcell__r r )r r r s r c s e Zd Zd� fdd� Z� ZS )�MemoryUsagec s. t t| �j|td�td�gfddi|�� d S )NZ bytesUsedZ peakBytesUsedr r )r r r r )r r r )r r r r , s zMemoryUsage.__init__)r )r r r r r r r )r r r + s r c s e Zd Zd� fdd� Z� ZS )�IndexStatisticsc s` t t| �j|td�td�td�td�td�td�td�tdd d �tddd �g fd di|�� d S )NZentriesIndexedZ postsFoundZ postsNotFoundZqueriesFoundZqueriesNotFoundZupdatesFoundZupdatesNotFoundZcurrDedupeQuerieszcurrent dedupe queries)�labelZmaxDedupeQuerieszmaximum dedupe queriesr r )r r r r �Uint32Field)r r r )r r r r 6 s zIndexStatistics.__init__)r )r r r r r r r )r r r 5 s r c s. e Zd Zd� fdd� ZdZ� fdd�Z� ZS )�KernelStatisticsc s t t| �j|tddd�tddd�td�tdddd �td dd�td dd�td�td�tddd�tddd�tddd�tddd�tddd�tddd�tddd�td d!d�td"d#d�td$d%d�td&d'd�td(d)d�td*d+d�td,d-d�td.d/d�td0d1d�t d2�gfd3d4d5�|�� d S )6N�versionF)Zdisplay�releaseVersion�instanceZfiveTwelveByteEmulationz512 byte emulationz-'on' if ($logicalBlockSize == 512) else 'off')r �derivedZcurrentVIOsInProgressz#current VDO IO requests in progress)r ZmaxVIOsz#maximum VDO IO requests in progressZdedupeAdviceTimeoutsZflushOutZlogicalBlockSizeZwriteAmplificationRatiozoround(($biosMeta["write"] + $biosOut["write"]) // float($biosIn["write"]), 2) if $biosIn["write"] > 0 else 0.00)r$ ZbiosInzbios in)ZlabelPrefixZ biosInPartialzbios in partialZbiosOutzbios outZbiosMetaz bios metaZbiosJournalzbios journalZ biosPageCachezbios page cacheZbiosOutCompletedzbios out completedZbiosMetaCompletedzbios meta completedZbiosJournalCompletedzbios journal completedZbiosPageCacheCompletedzbios page cache completedZbiosAcknowledgedzbios acknowledgedZbiosAcknowledgedPartialzbios acknowledged partialZbiosInProgresszbios in progressZmemoryUsagezKVDO module�indexZkernel_statsr )ZprocFiler ) r r r r ZStringFieldr Z FloatFieldr r r )r r r )r r r r M s6 zKernelStatistics.__init__� c s: t t| �j|�}|jd�tjks.|jd�tkr6td��|S )Nr! r"