It is currently September 15th, 2024, 6:50 am

Disk Activity

Skins that monitor system information
User avatar
CyborgTJB
Posts: 56
Joined: August 22nd, 2016, 4:20 am
Location: 26°26'29.14" N, 90°2'2.96" E

Re: Disk Activity

Post by CyborgTJB »

Thanks a lot.
I want to ask your permission to add this one to my skin
Everything you need to know about
http://fav.me/dak9j23

May I? :rosegift:
CyborG, I love and like to collect and join. :sly:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5512
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Disk Activity

Post by eclectic-tech »

Everything I code has Creative Commons licensing, free to share-alike, with credit (if you want)...

Balala will probably not mind, but I wouldn't want to speak for him... :uhuh:
User avatar
balala
Rainmeter Sage
Posts: 16539
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk Activity

Post by balala »

eclectic-tech wrote:Balala will probably not mind, but I wouldn't want to speak for him... :uhuh:
Completely agree...
User avatar
CyborgTJB
Posts: 56
Joined: August 22nd, 2016, 4:20 am
Location: 26°26'29.14" N, 90°2'2.96" E

Re: Disk Activity

Post by CyborgTJB »

eclectic-tech wrote:Everything I code has Creative Commons licensing, free to share-alike, with credit (if you want)..
Believe or not but the credit is always belong to you buddies. :thumbup:
I have just 3 skin in my side which are totally coded by me...
1. "QrioX_226.7" inspiring from "jarvis".
2. ASC inspiring from "NPAV gadget (I show it somewhere on customer computer)"
3. "Akiho yoshizawa 12" a friend request...
Mostly I'm just a picker and re-code them for comfort if needed. Do not feel bad if I put just one name in author (Because I want to skip every unwanted readying). But I have a list of 6.7 MB about "which is belong to whom?" accept one in my skin that show "up time" (The code was there in somewhere but without author name". But I type it "unknow1" just in case I found out and press ctrl+F to replace it directly.
If someone ask how I made it then I just share it with proud. Because I know how to be a good friend... :bow:

QrioX_226.7
http://fav.me/daihb9y

ASC (If u r a Advance System care lover)
http://fav.me/daknbb5

Akiho yoshizawa 12 (Nude content, Just for fun)
[Link Removed]
Thanks a lot for your support my best buddies... (Yes, You are in my best buddies list) :rosegift:
Last edited by Brian on April 1st, 2017, 5:23 am, edited 1 time in total.
Reason: Let's keep it clean.
CyborG, I love and like to collect and join. :sly:
User avatar
CyborgTJB
Posts: 56
Joined: August 22nd, 2016, 4:20 am
Location: 26°26'29.14" N, 90°2'2.96" E

Re: Disk Activity

Post by CyborgTJB »

"Brian"Reason: Let's keep it clean.
Got it Boss... :thumbup:
CyborG, I love and like to collect and join. :sly:
unsoft
Posts: 1
Joined: November 26th, 2020, 1:16 am

Re: Disk Activity

Post by unsoft »

Could you or is there an easy way for me to repurpose this for a CPU indicator?
RogerDodger
Posts: 19
Joined: May 24th, 2023, 3:11 pm

Re: Disk Activity

Post by RogerDodger »

Thank you, balala! You gave the great idea I needed by using PerfMon. I do have a question that maybe someone can explain/fix. One of the SSDs I'm using is partitioned into M and P drives. I'm using the measures and meters coded per balala. When I run an optimizer program on the M drive, the P drive also shows total activity, but if I run the optimizer on the P drive the M drive shows no activity. Originally the M was primary and P was logical. I changed both to be logical but it didn't make a difference. Any ideas on why this might be happening and what can fix it?
User avatar
SilverAzide
Rainmeter Sage
Posts: 2736
Joined: March 23rd, 2015, 5:26 pm

Re: Disk Activity

Post by SilverAzide »

RogerDodger wrote: August 9th, 2024, 11:37 am Thank you, balala! You gave the great idea I needed by using PerfMon. I do have a question that maybe someone can explain/fix. One of the SSDs I'm using is partitioned into M and P drives. I'm using the measures and meters coded per balala. When I run an optimizer program on the M drive, the P drive also shows total activity, but if I run the optimizer on the P drive the M drive shows no activity. Originally the M was primary and P was logical. I changed both to be logical but it didn't make a difference. Any ideas on why this might be happening and what can fix it?
You are going to need to post your code, or at least enough of it to see what your measures are doing for those drives. You might be using physical disk perf counters for one drive and logical disk counters for the other. You need to use the logical disk perf counters everywhere.
Gadgets Wiki GitHub More Gadgets...
RogerDodger
Posts: 19
Joined: May 24th, 2023, 3:11 pm

Re: Disk Activity

Post by RogerDodger »

I picked the logical drives for everything. Following is a synopsis of my skin. Hopefully it's enough information.

Code: Select all

Disk0=C:
Disk1=M:
Disk2=D:
Disk3=G:
Disk4=P:
ActivityColor:0=0,0,0,0
ActivityColor:1=0,255,0
ActivityColor:2=255,0,0
ActivityColor:3=255,240,0

[MeasureDisk1Percent]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=% Disk Time
PerfMonInstance=#Disk1#
DynamicVariables=1

[MeasureDisk1Read]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk1#
DynamicVariables=1

[MeasureDisk1Write]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk1#
DynamicVariables=1
IfConditionMode=1
IfCondition=((MeasureDisk1Read = 0)&&(MeasureDisk1Write = 0))
IfTrueAction=[!SetVariable Disk1Color 0]
IfCondition2=((MeasureDisk1Read > 0)&&(MeasureDisk1Write = 0))
IfTrueAction2=[!SetVariable Disk1Color 1]
IfCondition3=((MeasureDisk1Read = 0)&&(MeasureDisk1Write > 0))
IfTrueAction3=[!SetVariable Disk1Color 2]
IfCondition4=((MeasureDisk1Read > 0)&&(MeasureDisk1Write > 0))
IfTrueAction4=[!SetVariable Disk1Color 3]

[MeasureDisk4Percent]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=% Disk Time
PerfMonInstance=#Disk4#
DynamicVariables=1

[MeasureDisk4Read]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk4#

[MeasureDisk4Write]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk4#
DynamicVariables=1
IfConditionMode=1
IfCondition=((MeasureDisk4Read = 0)&&(MeasureDisk4Write = 0))
IfTrueAction=[!SetVariable Disk4Color 0]
IfCondition2=((MeasureDisk4Read > 0)&&(MeasureDisk4Write = 0))
IfTrueAction2=[!SetVariable Disk4Color 1]
IfCondition3=((MeasureDisk4Read = 0)&&(MeasureDisk4Write > 0))
IfTrueAction3=[!SetVariable Disk4Color 2]
IfCondition4=((MeasureDisk4Read > 0)&&(MeasureDisk4Write > 0))
IfTrueAction4=[!SetVariable Disk4Color 3]

[styleSystemActivityGraph]
X=(#PieGraph:X# + 1)
W=30
H=30
StartAngle=4.712
RotationAngle=6.283
LineLength=21
LineColor=255,0,0
Solid=1
AntiAlias=1

[MeterStorage1Activity]
Meter=Roundline
Container=MeterStorage1Container
MeasureName=MeasureDisk1Percent
MeterStyle=styleSystemActivityGraph
LineColor=[#ActivityColor:[#Disk1Color]]
Y=(#StoragePieGraph:Y# + 1)
DynamicVariables=1

[MeterStorage4Activity]
Meter=Roundline
Container=MeterStorage4Container
MeasureName=MeasureDisk1Activity
MeterStyle=styleSystemActivityGraph
Y=(#StoragePieGraph:Y# + 1)
Forgot to include the meter style (corrected)
Last edited by Yincognito on August 9th, 2024, 6:17 pm, edited 1 time in total.
Reason: To post code, select it and click the </> button above the message box.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2736
Joined: March 23rd, 2015, 5:26 pm

Re: Disk Activity

Post by SilverAzide »

RogerDodger wrote: August 9th, 2024, 5:30 pm
Nothing really stands out as causing the problem you are having, unfortunately. Minor side issues are: 1) the PerfMon plugin was deprecated long ago and should be changed to UsageMonitor, and 2) it is not a good idea to use variables with names containing colons or other symbols. Rainmeter's parser can get confused since colons have a special meaning.

Since you have been messing with the drives, your Performance Counter database may have become corrupted. It is easy for this to happen, even Windows Updates corrupts it sometimes. Go to the manual here, and scroll to the bottom of the page. Follow the instructions to reset your database. You'll need to exit Rainmeter and restart it, or possibly reboot your machine, once you are done.

If the problem persists, your next move would be to confirm that what you are seeing is actually coming from the data source. From your Windows Tools Control Panel, run the Performance Monitor app. Click the "Performance Monitor" branch in the left pane and click the green "+" icon. Scroll down to the "Logical Disk" item and expand it. Select the "Disk Read Bytes/sec" counter and in the instance box, select your problematic P: and M: drives and click "Add >>". Repeat this with the "Disk Write Bytes/sec" counters. Click OK when done.

You will have 4 new lines in the graph for the 4 counters you just added. Repeat the steps you did earlier and watch the graph to see if the Performance Monitor is acting the way you noticed. If it is, the problem is that this is the way Windows is reporting your disk activity and there is not much you can do about it. If it is different, the problem could be with the PerfMon plugin.
Gadgets Wiki GitHub More Gadgets...