usage Archives - David Yin's Blog https://www.yinfor.com/tag/usage Tech geek. Life geek. Wed, 13 Nov 2024 21:53:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.yinfor.com/wp-content/uploads/2016/09/cropped-icon-120x120.png usage Archives - David Yin's Blog https://www.yinfor.com/tag/usage 32 32 Check the folder size on Ubuntu Terminal Window https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html#respond Wed, 13 Nov 2024 21:52:58 +0000 https://www.yinfor.com/?p=10059 First, install the program, ncdu, to the Ubuntu VM Then, run the command ncdu in the terminal window. The program will scan the files and folders under the current prompt directory. The old school command window shows the space usage...

The post Check the folder size on Ubuntu Terminal Window appeared first on David Yin's Blog.

]]>
First, install the program, ncdu, to the Ubuntu VM

davidyin@minecraft:~$ sudo apt install ncdu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  ncdu
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 50.7 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu noble/universe amd64 ncdu amd64 1.19-0                                                                                                                                                             .1 [50.7 kB]
Fetched 50.7 kB in 0s (124 kB/s)
Selecting previously unselected package ncdu.
(Reading database ... 128087 files and directories currently installed.)
Preparing to unpack .../ncdu_1.19-0.1_amd64.deb ...
Unpacking ncdu (1.19-0.1) ...
Setting up ncdu (1.19-0.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning candidates...
Scanning linux images...

Pending kernel upgrade!
Running kernel version:
  6.8.0-45-generic
Diagnostics:
  The currently running kernel version is not the expected kernel version 6.8.0-48-generic.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

Restarting services...

Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Then, run the command ncdu in the terminal window.

The program will scan the files and folders under the current prompt directory. The old school command window shows the space usage of the folders.

Now, I can use the arrow key to navigate. Press enter to go into the folder.

Press Q to exit.

 

It is very easy to use. I like the simple interface and quick view.

The post Check the folder size on Ubuntu Terminal Window appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html/feed/ 0
What about the Backblaze B2 storage now https://www.yinfor.com/2023/12/what-about-the-backblaze-b2-storage-now.html https://www.yinfor.com/2023/12/what-about-the-backblaze-b2-storage-now.html#respond Mon, 11 Dec 2023 21:42:51 +0000 https://www.yinfor.com/?p=9291 I have been using Backblaze B2 Storage for fifteen days. In the beginning, the data was not stable. I changed the settings multiple times. The Backblaze backend reporting is kind of delayed or 48 hours round. Today, I will recheck...

The post What about the Backblaze B2 storage now appeared first on David Yin's Blog.

]]>
I have been using Backblaze B2 Storage for fifteen days. In the beginning, the data was not stable. I changed the settings multiple times. The Backblaze backend reporting is kind of delayed or 48 hours round.

Today, I will recheck the storage usage by different tools and reporting pages.

Mastodon Reporting

Mastodon > Administration > Dashboard

Media storage 805 MB

Tootctl command tool

mastodon@instance-20230911-1538:~/live/bin$ ./tootctl media usage
Attachments:    306.2 MB (47.4 MB local)
Custom emoji:   96.3 MB (269.8 KB local)
Preview cards:  16.9 MB
Avatars:        229.6 MB (19.4 KB local)
Headers:        156.1 MB (85.5 KB local)
Backups:        0 字节
Imports:        0 字节
Settings:       289.6 KB

The total is about 805MB

Awscl tool

Total Objects: 14042
Total Size: 933.2 MiB

Backblaze B2 Bucket information

Go to B2 Cloud Storage > Buckets, and check the bucket’s current information.

Current Files: 14,949
Current Size: 1.3 GB

Backblaze  B2 Caps & Alerts

Go to B2 Cloud Storage, Caps & Alerts, and check the Daily Storage Caps.

About 1GB.

Backblaze Reports

Go to B2 Cloud Storage > Reports.

The monthly avg GB stored is 3.9GB.

 

Here I would like to quote the Backblaze support’s answer.

Likely for the Bucket lists, it has not reflected files that have been deleted quite yet, dependent on Lifecycle rules.
Reports is your monthly average, it most likely means you uploaded something recently that changed this average.
Daily storage is how much is currently in the bucket as of today, again it has yet to delete the multiple versions via Lifecycle rules.

The post What about the Backblaze B2 storage now appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2023/12/what-about-the-backblaze-b2-storage-now.html/feed/ 0
Setup tootctl tool environment and the usage of media files https://www.yinfor.com/2023/12/setup-tootctl-tool-environment-and-the-usage-of-media-files.html https://www.yinfor.com/2023/12/setup-tootctl-tool-environment-and-the-usage-of-media-files.html#respond Mon, 04 Dec 2023 07:44:07 +0000 https://www.yinfor.com/?p=9273 When I post the Mastodon Self-hosting – Clean Media Storage with tootctl command, I forget to record how I prepare the environment. Before I run the tootctl command, I did the following. sudo su - mastodon echo "export RAILS_ENV=production" >>...

The post Setup tootctl tool environment and the usage of media files appeared first on David Yin's Blog.

]]>
When I post the Mastodon Self-hosting – Clean Media Storage with tootctl command, I forget to record how I prepare the environment.

Before I run the tootctl command, I did the following.

sudo su - mastodon
echo "export RAILS_ENV=production" >> ~/.bashrc

I checked the version of tootctl.

mastodon@instance-20230911-1538:~/live/bin$ ./tootctl --version
4.2.1

I saw someone using the bash file with the configuration.

Look at the media usage today.

mastodon@instance-20230911-1538:~/live/bin$ ./tootctl media usage
Attachments:    260.1 MB (26.9 MB local)
Custom emoji:   93.0 MB (269.8 KB local)
Preview cards:  8.3 MB
Avatars:        191.9 MB (18.8 KB local)
Headers:        62.3 MB (85.5 KB local)
Backups:        0 字节
Imports:        0 字节
Settings:       289.6 KB

It is based on the setting below:

  • Relays:  Disabled all relay URL
  • Content Retention:  2 days Media Cache, 7 days Content cache, and 3 days User archive.

 

The post Setup tootctl tool environment and the usage of media files appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2023/12/setup-tootctl-tool-environment-and-the-usage-of-media-files.html/feed/ 0
High CPU usage on Dell Inspiron 5570 https://www.yinfor.com/2019/11/high-cpu-usage-on-dell-inspiron-5570.html https://www.yinfor.com/2019/11/high-cpu-usage-on-dell-inspiron-5570.html#respond Tue, 26 Nov 2019 06:07:21 +0000 https://www.yinfor.com/?p=7100 It is in November 2019. There is a laptop, Dell Inspiron 5570. It is my mother in law’s laptop. Recently she found it is so slow and ask my help. I connected this laptop through Teamviewer. I checked the CPU...

The post High CPU usage on Dell Inspiron 5570 appeared first on David Yin's Blog.

]]>
It is in November 2019. There is a laptop, Dell Inspiron 5570. It is my mother in law’s laptop. Recently she found it is so slow and ask my help.

I connected this laptop through Teamviewer. I checked the CPU usage and found it is so high and the temperature is also high.

It is above 90 degrees.  The CPU usage is 100%. The top two are Intel PROSet/Wireless Event log service and Intel PROSet/Wireless Zero Configure Service.

 

 

 

The Windows 10 was upgraded to the latest one. build 1909.

I have to check the problem on Google and Dell community.

Actually I found the answer.

Excessive power and CPU usage for Intel(R) Proset/Wireless Services on Inspiron 5570 after Win10 update KB4511552

Here is the guide to solve the problem.

Try installing these Driver Updates then try to update W10 again.

Intel 3160/3165/7260/7265 WiFi Driver:

https://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverid=400FF&oscode=WT64A&produc…

Intel Chipset Device Software Driver:

https://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverid=691VF&oscode=WT64A&produc…

Intel Dynamic Platform and Thermal Framework:

https://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverid=KPPRD&oscode=WT64A&produc…

Intel Management Engine Interface Driver:

https://www.dell.com/support/home/us/en/04/drivers/driversdetails?driverid=JR36F&oscode=WT64A&produc…

 

When I download the above packages and install them, some are repairing. When I finish the third one, the CPU usage getting low.

 

The post High CPU usage on Dell Inspiron 5570 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2019/11/high-cpu-usage-on-dell-inspiron-5570.html/feed/ 0
Disable Trackback sitewide https://www.yinfor.com/2010/03/disable_trackback_sitewide.html https://www.yinfor.com/2010/03/disable_trackback_sitewide.html#comments Thu, 25 Mar 2010 11:31:07 +0000 https://www.yinfor.com/?p=764 During the past 6 months, all trackbacks are spams. To save the resource of my server, I disable the trackback service sitewide. I hope to see the CPU and Memory usage drop in the future. There are still some problem...

The post Disable Trackback sitewide appeared first on David Yin's Blog.

]]>
During the past 6 months, all trackbacks are spams. To save the resource of my server, I disable the trackback service sitewide.
I hope to see the CPU and Memory usage drop in the future.
There are still some problem of MovableType on Dreamhost.
Dreamhost is good. I use it for many small sites. But right now, I fell it is more restrict on memory usage. Any time I publish one post, 500 error comes. If rebuild site, situation worse.
I will keep watch it and see if it is getting better. Or I may transfer to VPS.

The post Disable Trackback sitewide appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2010/03/disable_trackback_sitewide.html/feed/ 2