Trending February 2024 # Track Cpu And Memory In Ubuntu Using Indicator # Suggested March 2024 # Top 7 Popular

You are reading the article Track Cpu And Memory In Ubuntu Using Indicator updated in February 2024 on the website Eastwest.edu.vn. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 Track Cpu And Memory In Ubuntu Using Indicator

While there are many system monitoring applications available for Ubuntu, most of them display information in their own window – be it a command line shell or GUI. However, if you’re looking to continuously monitor a handful of system parameters in simple text form, and do not want to waste time switching windows, getting the information displayed on the panel is an ideal solution.

In this article, we will discuss one such application – indicator-sysmonitor, which does just that for you. We’ll also discuss how you can use this application to display custom output.

Note: all examples discussed in this article have been tested on Ubuntu 14.04, and the application version used is 0.6.2-stable.

Indicator-Sysmonitor

The Indicator-Sysmonitor application displays various system-related information on the panel. This information includes file system disk space usage, network activity, memory usage, CPU usage, and swap space usage. In addition, the application also allows you to run your own scripts and commands and have their outputs displayed on the panel.

Download and Install

Execute the following commands to download and install the application on your Ubuntu box:

sudo

add-apt-repository ppa:fossfreedom

/

indicator-sysmonitor

sudo

apt-get update

sudo

apt-get install

indicator-sysmonitor

You can also directly grab the .deb file from here.

Once the application is installed, you can run it by launching “System monitor indicator” from Dash.

Features

As soon as you launch the application, you’ll see that the CPU and memory-related information is displayed on the panel (see image below).

This will bring up the following window:

It’s not difficult to understand that the text present in the “Customize output” box is responsible for the CPU and memory information that is displayed by default on the panel, and the “Sensors” section contains the complete list of system-monitoring parameters that you can use.

For example, suppose I want to display network-related information on the panel. So to do this, I’ll add the text network: {net} to the “Customize output” box:

So, you can see that the application output now contains network-related information. Similarly, you can add various available parameters to display and monitor information related to them.

Add custom output

The Indicator-Sysmonitor application also lets you display output of custom commands and scripts, which means that if you want to monitor the output of one of your scripts or a command, you can do that using this application. Here is a simple example:

Now the command you just added will be available in the list of sensors.

Similarly, you can also display output of your scripts. A good example of this can be viewed here.

Conclusion

Indicator-Sysmonitor is a simple application that is not only easy to understand but extensible. However, keep in mind that you cannot use it to display icons or tweak the font style and color of the output text. All in all, it’s worth giving it a try.

Himanshu Arora

Himanshu Arora is a freelance technical writer by profession but a software programmer and Linux researcher at heart. He covers software tutorials, reviews, tips/tricks, and more. Some of his articles have been featured on IBM developerworks, ComputerWorld, and in Linux Journal.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

You're reading Track Cpu And Memory In Ubuntu Using Indicator

How To Find And Fix A Memory Leak In Android

If your Android phone keeps crashing, you can usually pin it down to three potential causes. Your phone is either suffering from malware, battery drain or in most cases, a memory leak problem.

Phone memory leaks are rather harmless if the source is the app itself: sometimes, the app developer fails to fix coding errors. In such cases, you can simply remove the app but in other leak scenarios, the phone’s ability to handle memory requests is the main issue.

For this, we will consider three separate apps and share a list of methods to ensure you stay on top of the problem.

Symptoms of Memory Leaks in Android Apps

Memory leaks have been plaguing Android phones from their earliest builds. For example, at the time of launch of Lollipop, there was a memory leak which would cause the screen color to fade. The app to fix the color fade problem has been discontinued because Android has fixed it from version 5.1 itself.

Nowadays, a more typical problem is due to Java issues, mainly improper GarbageCollection (GC). Due to memory errors, GC fails to remove unused objects in time. As the leak accumulates, it can lead to slowdowns and frequent system crashes.

There can be also memory leaks due to screen rotation errors. The problem is an asynchronous task leak which is again connected to faulty GC issues.

1. Memory Optimizer

Memory optimizer is a good way to fix leaks traced to cache trash issues or corrupt temporary file errors. To work with this app, allow it to access photos, medias and files on your device.

It takes a while for the app to clean RAM and make more memory available.

In the following example, I was able to diagnose 1.16 GB of cache trash which was a good thing to know.

The app also shows unnecessary processes consuming a lot of memory. Some of them can be discontinued.

By following above steps, I was able to recover a lot of free space and memory utilization went down to only 19% from 70%.

2. Hyper MemoryCleaner

If you’re using anything below Android 8.0, you will face fragmentation error memory leak issues unlike more recent versions. HyperMemoryCleaner helps you reduce memory allocation to low priority apps.

I was able to free up RAM up to 446 MB. This is an older 6.0 phone with 1 GB RAM.

3. Memory Booster

If you want an all-round performance for any Android version, Memory Booster is a good pick. It is certainly a highly rated app with glowing reviews.

The app shows you your used memory status which in my phone’s case was very high. Although there were no obvious symptoms, I did notice slowdowns.

Speed boost option gives instant memory boost by clearing backlogs and leaks in all system processes.

The app improved memory gain by 1.19 GB which was a phenomenal score.

Tips to Decrease Memory Leaks

Reduce clutter: to reduce memory leaks, you must first reduce the internal storage clutter. You can usually access a “clean up” option in “Files & Storage” which you must periodically employ to eliminate files and apps consuming space.

Identify where the leak happens: using the three apps discussed here, you can identify the location of the leak. They exist near the cache or temporary files, RAM clutter or backlogs in system processes/start-up issues.

Optimize the phone Internet settings: try to reduce excessive background Wi-Fi scans and data usage. If you’re not using your phone, it is better to turn off the Internet.

Remove any app that consumes too much RAM: if your phone has a limited capacity, you need to watch out for the ones that consume too many system processes.

Conclusion

Android phone memory is one of the most critical criteria that governs our purchase of a new device. However, even if you have a lot of RAM, it can get over-consumed by bloatware apps which follow a version of Parkinson’s law: data expands to fill the space available to it. Thus, it’s always better to detect and fix memory leaks in Android.

Sayak Boral is a technology writer with over eleven years of experience working in different industries including semiconductors, IoT, enterprise IT, telecommunications OSS/BSS, and network security. He has been writing for MakeTechEasier on a wide range of technical topics including Windows, Android, Internet, Hardware Guides, Browsers, Software Tools, and Product Reviews.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

Smartwatches Track Sanitation Workers’ Every Move In India

We may earn revenue from the products available on this page and participate in affiliate programs. Learn more ›

This article was originally featured on Undark.

Munesh, who estimates she is in her 40s and, like many Indians, goes by just one name, is one of around 4,000 such sanitation workers. The corporation makes it mandatory for them to wear smartwatches—called Human Efficiency Tracking Systems—fitted with GPS trackers. Each one has a microphone, a SIM embedded for calling workers, and a camera, so that the workers can send photos to their supervisors as proof of attendance. In Chandigarh, this project is run by Imtac India, an IT services company, at a cost of an estimated $278,000 per year. Meanwhile, sanitation workers say that the government has not invested in personal protective gear throughout the Covid-19 pandemic, and that they have long worked without medical care and other vital social services.

From the time the sanitation workers turn on their watches until they turn them off, their GPS locations are monitored in real time by officials at the Command and Control Center of the Chandigarh Municipal Corporation. The workers appear as green dots on a computer screen and as they move around in their assigned areas, the green dot moves along a line.

The camera fitted on the tracker is what scares Munesh and many other sanitation workers, who mostly come from the Dalit community or other Hindu lower castes. (In the Indian subcontinent, the caste system has long categorized and limited people’s education and work prospects; the job of cleaning or sanitation has always been linked to the lower castes.) Wearing the tracker is mandatory. According to Krishan Kumar Chadha, the former president of the Chandigarh Sanitation Workers’ Union, taking it off incurs a fine of half a day’s salary, around $3 to $4, although Abhay Khare of Imtac India denies there is such a fine. Workers also have to take the devices home. They worry about privacy leaks and the inability to turn off the trackers and cameras—even when they are in the bathroom.

One of the flagship programs of Indian Prime Minister Narendra Modi is to bring “digital innovations” to the country. Under this Digital India initiative, Modi has been pushing for cashless or digital transactions, digital attendance, and surveillance systems, like the one in place for the sanitation workers. This digital attendance and tracking system is also part of another much-hyped campaign of the government: the Clean India Mission, also known as Swachh Bharat Abhiyan, which launched in October 2014 with the goal of a clean and sanitary India.

These systems come with incentives for the municipalities. Civic bodies with a digital attendance system earn extra points toward an annual list of the country’s “cleanest” cities, an honor that gives them bragging rights. This online surveillance of sanitation workers is currently operational in more than a dozen cities, including Indore, Nagpur, Navi Mumbai, Panchkula, Thane, and Mysuru.

The Chandigarh Municipal Corporation introduced GPS-enabled smartwatches for its sanitation workers in 2023. The government says that the tracking devices bring transparency into the attendance system and prevent workers from allowing someone else to sub in for them.

But the workers have been protesting ever since, arguing that the watches violate their privacy and rights. For her part, Munesh says, “it’s like an iron shackle around our necks.”

In August 2023, the Supreme Court of India, through a judgment, recognized privacy as a fundamental right.

“Among basic rights conferred on individuals by the Constitution as a shield against excesses by the State, some rights are at the core of human existence,” the top court said in its judgment. “Thus, they are granted the status of fundamental, inalienable rights essential to enjoy liberty. Liberty is the freedom of an individual to do what he pleases and the exercise of that freedom would be meaningless in the absence of privacy.”

In 2023, a 10-member committee, headed by a retired Supreme Court judge, submitted a comprehensive report on data protection. The committee also suggested a draft data protection bill; a revised version is still pending before a Joint Parliamentary Committee and could be scrapped in favor of new data privacy legislation.

Although a law passed in 2000 called the Indian Information and Technology Act does allow digital surveillance or interception of citizens under certain circumstances, Duggal adds, the sanitation trackers amount to “crystal clear illegal interception.”

A 29-year-old cleaner named Neerjo didn’t know that officials at the Command Center can trace the location of her house through the tracker until her interviews with Undark. She was taken aback. “We did not know this,” she says and looks at her co-workers in surprise. “We have never been told anything about the watch.” Undark repeatedly contacted Chandigarh Municipal Corporation Commissioner Anindita Mitra to verify this and other details about the smartwatch program; the calls and emails went unanswered.

Still, Abhay Khare, business head of Imtac India—a distribution partner of ITI Limited in Chandigarh—insists that the GPS trackers are not breaking laws, and that they follow all the parameters of data safety and privacy. He adds that the devices are also used for government security, “so the ITI Limited is very careful about these parameters.”

Before he left his position as project coordinator of Chandigarh’s human efficiency tracking system program, Suraj Kumar also told Undark that on the smartwatches, neither the microphone nor the camera can be controlled remotely, which means that no one in the control center can turn them on.

But that does not assuage the fears of the sanitation workers, particularly women. Many say they avoid using the bathroom while on duty. Others put the smartwatches in purses or pockets beforehand—because, says a worker named Mithlesh, “sometimes we go to [the] washroom and the camera turns on automatically, causing problems.” Around a dozen women who spoke to Undark shared the same concern.

And even though the officials at the CMC stress that the data of sanitation workers are secured and deleted after three months, the workers also complain they often receive spam calls on their smartwatches. “One night, I was awoken by a call on my smartwatch around 11:30 [p.m.],” says one worker, Shakuntala. “I picked it up and some man was asking me who I was. I hung up, knowing it was an unknown number and not someone from my office. How did he get my number if the SIM was given by the Corporation?”

Khare says the GPS trackers do not allow unwanted calls. “It’s impossible they would get spam calls,” he says, adding he had checked it himself.

The workers say the tracking device invades their personal lives. They are required to charge GPS devices at home each night, to make sure the watches remain on during working hours the next day. If the watch is off, the workers are marked absent, risking their wages. According to Chadha of the Chandigarh Sanitation Workers’ Union, the fine for losing the tracker ranges from around $107 to $134, almost their month’s salary.

Taking these devices home aggravates the problems, says Shakuntala. “When I am around the watch, I get conscious,” she adds.

In each part of the city, a supervisor looks after a team of sanitation workers and marks their attendance. A supervisor named Satyapal Singh tells Undark that if a worker’s watch turns off or shows them outside the area where they should be working, even if they are marked present on the register, they don’t get paid.

Pradeep, who drives a sewage truck, says he once got a call from his supervisor, inquiring why he was absent for a week. Although he had been at work, at the Command Center, he was marked inactive. It took Pradeep a few days to prove that he was on duty, he says: “My salary would have been slashed otherwise.”

A few days before India’s Republic Day in January 2023, Chadha, the former president of the Chandigarh Sanitation Workers’ Union and a current senior member, sits in his office, a makeshift tin shed, outside a bustling market near the Municipal Corporation office. He sits with workers as they talk about the cleanliness preparation ahead of the special occasion.

But he also stresses the union’s presence at an upcoming protest against the tracking devices.

He breaks his conversation with a worker and points towards his smartwatch: “What is this watch?” he asks and leans forward. Then he pauses and sinks in his chair and answers himself, “It is a handcuff that enslaves poor workers.” Chadha draws reference from ancient times, saying it is akin to the times when lower castes were physically chained and forced to do menial jobs.

Khare of IMTAC India boasts of the increased productivity the tracking system has achieved. He says that some local governments using the smartwatches to track field workers have detected employees farming out their work to other people, and that it has been able to save a huge amount of state expenditure.

Even before the Covid-19 pandemic, the sanitation workers say, they were never provided with any safety or protection gear. They also say they are not given any paid leave, medical treatment, or insurance.

Bezwada Wilson, National Convener of Safai Karmachari Andolan—a human rights organization pushing to end manual scavenging, a traditional practice reserved for Indians from Scheduled Castes—says the surveillance, which he calls illegal, is dehumanizing. It reinforces the idea of slavery, he adds, and stems from the casteist mindset.

“It’s modern-day slavery,” he said, adding that India’s “dominant” castes “still see the sanitation workers as untouchables. As if that was not enough, this tracking device has only reinforced that idea.”

Before her lunch break ends, Munesh asks for help with checking how many steps she has walked so far that day. Since her shift started at 7 a.m., her tracker shows she has walked 2,231 steps in the first half of her shift. There are four more hours to go, and one of her coworkers says they cannot afford breaks. Even if they finish their jobs early, they should appear in motion on the screen.

As soon as her lunch break ends, Munesh prepares to leave. She picks up a broom, walks away towards a bustling market, and bends to sweep the litter.

Is Your Browser Using Too Much Cpu?→ Fix To Make It Use Less

Is Your Browser Using Too Much CPU?→ Fix to Make It Use Less Ending the process is the quickest solution to high CPU usage

583

Share

X

If you’re noticing high CPU usage while browsing, it might be the browser’s fault. 

Chances are you are using either Chrome, Firefox, Edge, or Opera One, and our solutions will work regardless.

If none of these fixes work, you should try scanning your PC for malware. 

Struggling with various browser issues? Try a better option: Opera One

You deserve a better browser! Over 300 million people use Opera One daily, a fully-fledged navigation experience coming with various built-in packages, enhanced resource consumption, and great design.

Here’s what Opera One can do:

Optimize resource usage: Opera One uses your Ram more efficiently than Brave

AI and User Friendly: New feature directly accessible from the sidebar

Gaming friendly: Opera GX is the first and best browser for gamers

⇒ Get Opera One

High CPU usage when browsing the internet is nothing strange in the current state of online multimedia presentation. All mainstream browsers are pretty demanding, and if you have a lackluster configuration, there’s a good chance that the CPU will hit sky-high levels.

Nonetheless, sometimes the core of the problem isn’t your overwhelmed CPU or underperforming GPU, but rather internal issues that are more browser-related.

In order to avoid seeing high CPU activity inflicted by your browser of choice, make sure to check the solutions we provided below. They should help you overcome the issue or, at least, subdue it for the time being.

Why is browser taking up so much CPU? How do I lower my CPU usage?

Later in this article, we will discuss fixing high CPU usage, but here are a few things you may do to lower your CPU usage:

Visit only trusted sites with the padlock logo.

Keep only a few tabs open at any given time

Disable or remove any extensions you do not use

How do I fix my CPU usage on my browser? 1. Disable add-ons 1.1 How to disable add-ons in Opera One

Opera One made a lot of exquisite improvements over time, and it’s a force to be reckoned with in the browser market.

It’s more than a viable solution because of the integrated VPN and AdBlocker, a well-designed interface, and optimized browsing for slow connections.

Besides this, features like the Speed Dial, keyboard shortcuts, and delaying loading of background tabs enhance the experience and CPU usage.

Opera One is a better-suited solution than the others available on the market, and the extra features incorporated in the browser make it much more worthwhile.

Opera One

Join the existing 50 million users, and see what it is like to browse at lightning-fast speeds.

Free Download

1.2 How to disable add-ons in Chrome

Now you should verify if you are still experiencing high CPU when browsing the internet.

2. Delete cache and cookies 2.1 How to delete Opera One data 2.2 How to delete Chrome data

Once again, you should note that for most browsers, the process of clearing cache data will be very similar to Chrome and Opera One.

3. End the browser process

If you notice browser high CPU usage on startup, you should try forcing the task to end and verify if you are still experiencing high CPU when browsing the internet.

4. Disable Hardware Acceleration

Now you should verify if you are still experiencing high CPU when browsing the internet.

Does CPU affect Web browsing?

Your programs can process information more quickly when your computer has a robust and speedy CPU. The amount of work you are doing will affect how long it takes for a website to load.

This means that if you’re attempting to see an episode of your favorite program while having a lot of tabs and apps open, it could appear a bit sluggish.

Technically speaking, in these cases, your internet service provider’s download speed has not changed. For example, you may still obtain a steady 30 Mbps, but website loading times can still be lengthy.

Regardless of your browser, you should notice that the solutions discussed in this artic;e should work when your Web browser is taking up CPU. However, the UI may differ, but you can figure it out in most cases.

In some cases, browser high CPU usage is caused by malware, so we recommend you use any of the best anti-malware compatible with Windows. Malware is a likely culprit if you notice Chrome using the CPU when closed.

Was this page helpful?

x

How To Delay Startup Application In Ubuntu

If you’re using some apps every time you log in to your desktop, you can avoid having to run them manually every time by adding them to the startup list. However, if you set too many apps to autostart, your initial login to your desktop will lag significantly. All apps will be fighting for the same resources while trying to get to your desktop. Thankfully, there’s a solution: add a delay to startup applications.

In this tutorial, we show how to optimally delay startup applications in Ubuntu. We do this by adding a delay timer so that it doesn’t run automatically after login. Let’s see how you can do it for the apps you use.

Startup Applications

Some apps are helpful when they’re always available. However, some apps, in this case Plank, don’t autostart by default when you login. The solution is to add it to the list of other apps that start automatically whenever you log in to your desktop.

Visit your apps menu, search for the Startup Applications app, and run it.

The Startup Application Preferences dialog will show you a list of all the apps that load automatically whenever you log in.

Note: some system-related apps are hidden by default in the Startup Applications Preferences list. However, we ignore them for this tutorial, since they don’t affect what we want to do.

Add New Startup Entry with Delay

6. Log out or restart your computer.

7. Your application will autostart after the delayed time.

That is how to delay startup applications in the latest versions of Ubuntu. Are you using a different approach for auto-starting your apps? You can also learn the shortcut keys for Ubuntu so you can access your applications faster.

Odysseas Kourafalos

OK’s real life started at around 10, when he got his first computer – a Commodore 128. Since then, he’s been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

How To Configure Screen Brightness In Ubuntu

If you are staring at the screen everyday, I am sure you will want to make the screen comfortable for your eyes. Adjusting the correct brightness is not only essential to protecting your eyes, it also helps to conserve battery power and reduce your electricity bill. In Ubuntu, adjusting the screen brightness is easy, but customizing it requires you to go deep into the settings. Let’s see how you can configure the screen brightness in Ubuntu.

Note: The brightness setting is only applicable if you are using a laptop. On a desktop, you can easily adjust the screen brightness on the monitor.

Adjusting Screen Brightness from the Settings

The easiest, and the most obvious way to adjust the screen brightness is via the System Settings. In the System Settings, you should see an option with the name “Brightness and Lock”.

Going into the Brightness section, you will be able to drag the slider to adjust the brightness level (assuming you are using a laptop)

You will also see an option for the system to “dim screen to save power”. Selecting this option will turn the brightness down when the system is idle (no keyboard or mouse movement).

More Not-so-obvious brightness Settings

If you feel that the brightness level in the idle mode is still too high, or that the system go into dim mode too fast/slow, here is how you can change the brightness settings.

Open a terminal and type:

dconf-editor

Note: If it says the command is not available, you will have to install the dconf-tools package.

From here, you can change the “idle-brightness”, “idle-dim-ac”, “idle-dim-battery” and “idle-dim-time” settings. A quick explanation of the terms:

idle-brightness – the brightness level when the system is idle. I have set it to only 10% of the full brightness. You can set it higher or lower depending on your needs.

idle-dim-ac – Enabling this option will dim the screen when the system is idle and running on AC power.

idle-dim-battery – Enabling this option will dim the screen when the system is idle and running on battery.

idle-dim-time – the amount of time before the system transits into idle mode. The default is 90 seconds, but I have turned it down to 15 seconds.

The settings will take effect immediately upon changes. Once you have made the necessary changes, you can just close the dconf-editor.

Adjusting Brightness from the desktop

If your laptop doesn’t come with a dedicated brightness control button, and you don’t like to go to the System Settings to adjust the brightness everytime, you can install the “indicator-brightness” to directly adjust the screen brightness from your desktop.

In your terminal,

sudo

add-apt-repository ppa:indicator-brightness

/

ppa

sudo

apt-get update

Making the brightness level stick on reboot

If you have noticed, no matter which level you have adjusted the screen brightness to, on the next reboot, the brightness level will go back up to 100%. This is probably a bug that Canonical has not get around to solve. Here is a walk around to get the brightness level to stick.

Install xbacklight:

sudo

apt-get install

xbacklight

Open the “Startup Applications” and add a new startup item with the command:

The “40” in the above command is the level of the screen brightness, in percentage, that you want to set. You can change it to the value you want, say 60, or 80.

Note: xbacklight will only take effect after you have logged in. The brightness level at the login screen will still remain at 100%.

Adjusting the screen brightness may seem like an easy task, but apparently, there are more to it than the standard dimmer/brighter brightness control button. Hopefully, with this tutorial, you will be able to solve the brightness issue that have been bugging you from the start.

How do you manage your screen brightness in your Ubuntu?

Image credit: Light Bulb by Big Stock Photo.

Damien

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

Update the detailed information about Track Cpu And Memory In Ubuntu Using Indicator on the Eastwest.edu.vn website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!