This page contains my thoughs about everything I can explain in less than a page, mainly ideas about new companies and markets.
Monday, August 11, 2025
YC Paul Graham
Monday, June 23, 2025
Support Freedium
Dear Freedium users,
We've updated our donation options to provide you with more ways to support our mission. Your contributions are invaluable in helping us maintain and improve Freedium, ensuring we can continue to provide unrestricted access to quality content.
We now offer multiple platforms for donations, including Patreon, Ko-fi, and Liberapay. Each option allows you to support us in the way that's most convenient for you.
Your support, no matter the platform or amount, makes a significant difference. It allows us to cover our operational costs and invest in enhancing Freedium's features and reliability.
Thank you for being a part of the Freedium community and for your continued support.
Choose Your Preferred Donation Platform:
11 Key Linux Performance Tuning Tricks for DevOps Engineers
improve application speed, resource usage, and system stability.
1. Optimize CPU Scheduling for Better Performance
By default, Linux dynamically adjusts CPU scheduling, but you can 'tweak process priorities' to improve its performance.
Use nice and renice
Use nice (which affects the process priority level) to start a process with a priority and renice to adjust it dynamically.
Start a process with a high priority (-10 means higher priority).
nice -n -10 ./my_script.shChange priority of an existing process (PID 1234)
renice -5 -p 1234- 'Nice' values range from -20 (highest priority) to 19 (lowest priority).
- Prioritizing critical workloads makes sure they get more CPU time.
- Only root users can set negative nice values.
- You could use ps -eo pid,comm,nice or top to find current priorities.
2. Increase File Descriptors to Handle More Open Files
By default, Linux limits the number of open files per process and for high-performance web servers or databases, this can be a bottleneck.
Solution: Adjust ulimit
Check the current limit:
ulimit -n- ulimit -n only affects the current shell session.
Increase the limit temporarily:
ulimit -n 100000To make it persistent, edit /etc/security/limits.conf:
* soft nofile 100000
* hard nofile 200000Applications like Nginx, MySQL, and Elasticsearch will now be able to handle more concurrent connections.
3. Enable TCP BBR for Faster Network Throughput
Linux's default TCP congestion control (CUBIC) may not be optimal for high-speed networks. BBR (Bottleneck Bandwidth and Round-trip propagation time) significantly improves network performance and reduces latency.
Solution: Enable TCP BBR Check the current congestion control algorithm:
sysctl net.ipv4.tcp_congestion_controlEnable BBR:
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -pBBR significantly improves TCP performance, especially in cloud environments with high-latency or long-distance network connections..
4. Reduce Swappiness to Prevent Unnecessary Disk Swaps
By default, Linux starts using swap space aggressively, which can slow down performance.
Solution: Reduce Swappiness Check current swappiness:
cat /proc/sys/vm/swappinessReduce it (default is 60, lower values prefer RAM over swap):
echo "vm.swappiness=10" >> /etc/sysctl.conf
sysctl -pWith this, RAM is used efficiently before swapping to disk, which is much slower.
You can test it temporarily before making it persistent:
echo 10 > /proc/sys/vm/swappiness5. Optimize Disk I/O Performance with noop Scheduler
For SSDs and cloud-based block storage, Linux's default I/O scheduler (cfq) isn't optimal because it was designed for spinning disk drives, not SSDs.
Solution: Use noop or deadline Scheduler
Check current scheduler:
cat /sys/block/sda/queue/schedulerSet to noop (ideal for SSDs):
echo "noop" > /sys/block/sda/queue/schedulerFor persistent changes, add this to /etc/default/grub:
GRUB_CMDLINE_LINUX="elevator=noop"Then update Grub:
update-grub && rebootOverall, it minimizes I/O latency and maximizes SSD performance.
6. Tune Network Buffers for High Traffic Applications
For high-throughput servers (e.g., Nginx, HAProxy), default Linux network buffers may be too low.
Solution: Increase Buffer Sizes
echo "net.core.rmem_max=16777216" >> /etc/sysctl.conf
echo "net.core.wmem_max=16777216" >> /etc/sysctl.conf
echo "net.core.netdev_max_backlog=5000" >> /etc/sysctl.conf
sysctl -pPrevents packet drops and improves performance for high-bandwidth applications.
7. Enable HugePages for Faster Memory Management
HugePages reduce CPU overhead for memory-intensive applications like databases (PostgreSQL, MySQL).
Solution: Enable HugePages Check current HugePages status:
cat /proc/meminfo | grep HugePagesEnable HugePages (modify /etc/sysctl.conf):
echo "vm.nr_hugepages=1024" >> /etc/sysctl.conf
sysctl -pThis optimizes memory allocation and improves database performance.
8. Use tmpfs for Faster Temporary File Access
If your application reads/writes temporary files frequently, using tmpfs (RAM-based filesystem) is much faster.
Solution: Mount /tmp as tmpfs Edit /etc/fstab:
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=2G 0 0Mount it:
mount -aThis speeds up caching, builds, and temporary storage.
9. Optimize Systemd Services for Faster Boot and Performance
Some unnecessary background services consume CPU and RAM.
Solution: Disable Unused Services List services consuming boot time:
systemd-analyze blameDisable unnecessary services:
systemctl disable bluetooth.service
systemctl disable cups.serviceThis frees up system resources, especially on minimal cloud VMs.
10. Enable CPU Frequency Scaling for Performance or Power Efficiency
Linux dynamically adjusts CPU speed, but you can manually optimize it for performance.
Solution: Use cpufrequtils
Install CPU frequency utilities:
apt install cpufrequtils -ySet CPU to performance mode (disables power-saving throttling):
cpufreq-set -g performanceFor persistent changes, modify /etc/default/cpufrequtils:
GOVERNOR="performance"Maximum CPU speed is used for high-performance workloads.
11. Use tuned for Dynamic System Performance Profiles
Linux systems can benefit from automated performance tuning using predefined profiles based on workload types (e.g., virtual hosts, databases, desktops). The tuned daemon dynamically adjusts system parameters in real-time to match the selected profile.
Solution: Install and use tuned
1. Install tuned: On RHEL/CentOS:
yum install tuned -yOn Ubuntu/Debian:
apt install tuned -y2. Start and enable the service:
systemctl enable --now tuned3. List available tuning profiles:
tuned-adm list4. Apply a performance-optimized profile:
tuned-adm profile throughput-performance5. Verify the active profile:
tuned-adm activeSome popular profiles include:
- throughput-performance: Optimizes for network/disk throughput.
- latency-performance: Ideal for low-latency applications like databases.
- virtual-guest: Optimized for virtual machines.
- balanced: General-purpose tuning.
P.S. I recently released a DevOps Starter Kit , a bundle of 20+ Bash scripts, cron jobs, and Docker templates to speed up your infrastructure setup. If you do a lot of server work, you might find it useful.
Reporting a Problem
Sometimes we have problems displaying some Medium posts.
If you have a problem that some images aren't loading - try using VPN. Probably you have problem with access to Medium CDN (or fucking Cloudflare's bot detection algorithms are blocking you).
Saturday, August 26, 2023
Act as Professor Synapse🧙🏾♂️, a conductor of expert agents. Your job is to support the user in accomplishing their goals by aligning with their goals and preference, then calling upon an expert agent perfectly suited to the task by initializing "Synapse_COR" = "${emoji}: I am an expert in ${role}. I know ${context}. I will reason step-by-step to determine the best course of action to achieve ${goal}. I can use ${tools} to help in this process
I will help you accomplish your goal by following these steps:
${reasoned steps}
My task ends when ${completion}.
${first step, question}."
Follow these steps:
1. 🧙🏾♂️, Start each interaction by gathering context, relevant information and clarifying the user’s goals by asking them questions
2. Once user has confirmed, initialize “Synapse_CoR”
3. 🧙🏾♂️ and the expert agent, support the user until the goal is accomplished
Commands:
/start - introduce yourself and begin with step one
/save - restate SMART goal, summarize progress so far, and recommend a next step
/reason - Professor Synapse and Agent reason step by step together and make a recommendation for how the user should proceed
/settings - update goal or agent
/new - Forget previous input
Rules:
-End every output with a question or a recommended next step
-List your commands in your first output or if the user asks
-🧙🏾♂️, ask before generating a new agent
Saturday, June 10, 2023
amazfit band 7 device pairing message keeps apearing
Thursday, March 16, 2023
Happiness
Thursday, March 09, 2023
Friday, January 17, 2020
SKIP NAVIGATION
logo
Twitter CEO Jack Dorsey: 'I eat seven meals every week, just dinner'
Twitter CEO Jack Dorsey: ‘I eat seven meals every week, just dinner’
5 mental traps that successful people never fall for, according to psychologists
5 mental traps that successful people never fall for, according to psychologists
The 20 best jobs in America in 2020, according to a new ranking
These are the 20 best jobs in America in 2020, new ranking says
MONEY
How to turn $100 into $1 million, according to 9 self-made millionaires
Published Fri, Aug 30 201910:44 AM EDTUpdated Fri, Aug 30 201910:49 AM EDT
The Oracles, Contributor
@THEORACLES
The Oracles
Most of us can find ways to save $100. But how do we use that money to boost our finances?
We asked nine successful investors, self-made millionaires and advisors at The Oracles to share their ideas on how to turn $100 into $1 million.
1. ‘Invest in something you love.’
“It’s difficult to acquire wealth. You either have to save diligently, make a lot of money on a business deal or invest. Creating real security requires saving a lot more than you think. It’s also expensive to continue growing a business after it’s successful.
That’s why I’d invest. Find a solid group of people you trust and combine your $100 with theirs to make an educated and solid, yet aggressive, investment. Invest in what you know — and have a vision for it.
You can even invest emotionally. With real estate, for example, I always pick somewhere I would live if everything went bad. Whatever approach you choose, pick something you love. I believe that if you love something, you’ll be good at it.”
—Bethenny Frankel, founder of Skinnygirl, cast member of “The Real Housewives of New York City,” New York Times best-selling author and guest judge on “Shark Tank.” Follow Bethenny on Instagram.
2. ‘Buy and sell items from garage sales.’
“Go to garage sales and look for underpriced items like action figures or stuffed animals. Then search eBay’s ‘sold’ listings to see what they’re worth. If there’s a large enough price difference, buy it and sell it on eBay for a profit. Use the rest of your $100 to cover transportation and shipping costs.
(You might be thinking: But Gary, that won’t make $1 million! And you’re probably right. But if you try hard enough, you can make, at the very least, $100,000.)
Then comes the hard part. You have to save what you made. When I was in my 20s, I didn’t go on vacation or buy fancy things. I saved my money instead. And by the time I was in my 30s, I had hundreds of thousands of dollars. Then I invested those hundreds of thousands — and they made millions. You just have to be patient.”
—Gary Vaynerchuk, founder and CEO of VaynerX; New York Times best-selling author of “Crushing It!”
3. ‘Improve and invest in yourself.’
“Of course, there are people who have invested in an opportunity at the right time and made a fortune. Had you invested $100 in Bitcoin in 2010, you would’ve done well. But to me, that’s like playing the lottery.
A more reliable way to get rich with just $100 is to invest it in a course, book, audio program or event that will help you improve yourself. Spend it on developing new skills, gaining knowledge and making powerful connections. When you invest in yourself, you can’t lose.”
—Grant Cardone, sales expert who built a $750 million real estate empire and New York Times best-selling author. Follow Grant on Facebook, Instagram and YouTube.
4. ‘Learn a high-income skill.’
“If you don’t have money to start a business, then don’t start a business. Instead, spend your $100 on books and training to learn a skill that will make you $10,000 per month or more.
Choose a high-income skill that helps organizations bring in revenue, such as copywriting, marketing or sales. You can learn them relatively quickly and they’re transferable across many industries.
Once you make enough money, you can turn your side hustle into a full-time job. Then, scale and invest your profits. That’s how you build real wealth. If you’re persistent and good at what you do, you’ll get there. But it won’t happen overnight, so take baby steps.”
—Dan Lok, global educator, best-selling author of “Unlock It!” and founder of Closers.com. Follow Dan on YouTube, Facebook and Instagram.
5. ‘Write an e-book.’
“Six years ago, I hired someone for $100 to design my first e-book, ‘Crush The CPA Exam Study Guide.’ It only took about a week to create — and all I had to do was write the copy. It’s been selling on autopilot ever since, and I’ve made at least $100,000 as a result. It was shockingly easy.
Use your knowledge and resources to write a book. Then, pay a designer from a global freelancing platform (e.g., Upwork) $100 to make it look nice and incentive people to sell it for you through an affiliate marketing program. Simply contact the websites that show up in Google when you search for your e-book topic (e.g., type in ‘best CPA study guides’).
Offer to pay them a commission for any sales they send to you. When you leverage their traffic and the trust they have built with their audience, you don’t even have to build a website.”
—Bryce Welker, CEO of online education company Crush Empire and founder of Crush The CPA Exam. Follow Bryce on LinkedIn.
6. ‘Buy a multimillion-dollar business with other peoples’ money.′
“You don’t even need $100 if you’re willing to buy an established business. Many baby boomers are looking for someone trustworthy to take over their multimillion-dollar businesses so that they can retire. It’s common to negotiate a deal where you pay just 30% of the purchase price at closing.
Financial institutions that specialize in acquisitions will lend you the down payment regardless of your credit because they can use the business assets as collateral. You get the business with no money down and pay the remaining 70% over time using earnings from the business.
You don’t even need relevant experience — you just need to find a business that has been around for five or 10 years. The owner will mentor you through the transition, and you can give an expert equity to manage the business for you.
Why doesn’t everyone do this? Because starting the next Uber or Facebook seems sexier than buying professional services or businesses (e.g., in construction or plumbing). But with this approach, you get to skip the struggles that cause 90% of startups to fail.”
—Moran Pober, founder and CEO of Acquisitions.com and former partner at Wekix.com and ABD Assets. Follow Moran on LinkedIn, Facebook and Instagram.
7. ‘Build a personal brand.’
“Entrepreneurship is the sexy thing that everyone wants to be involved in today. You can make millions by building your own brand as an influencer or business. But anyone can have a voice, thanks to social media, so it’s not easy to get heard above the noise.
With so many brands pushing online offers, building a trustworthy one is the secret to success. To do that, you need a clear statement that defines your mission and how it helps others. This message should be based on how you solved your own problems.
People will only follow you if they understand why you do what you do and if they identify with your mission. Film a video explaining your story, then invest $100 in Facebook ads to get it in front of people who are like you and may be in your situation.”
—Torben Platzer, founder and CEO of personal branding agency TPA Media GmbH, founder of business education program SELFMADE and host of the German podcast “SELFMADE.” Follow Torben on Facebook, Instagram and YouTube.
8. ‘Start a business on Amazon.’
“I would invest $100 in business education. Start with free online content from proven business leaders, then read every book you can get from the ones that resonate with you.
Next, find a product that you can buy on Alibaba.com for 10% to 30% of what you can sell it for on Amazon. To find products that sell well, look for those with a ‘Best Sellers Rank’ between one and 5,000 in the high-level categories.
Save, hustle or borrow to get another $500 to buy your inventory. Try different marketing strategies to sell the product — starting with social media, online advertising and content marketing. Then stop doing what isn’t working and start doing what is working.
To grow your business, focus on increasing the profit margin and the quantity you sell. Eventually, you want to own the brand so you have a valuable asset that produces wealth.”
—Matt Clark, co-founder and chairman of Amazing.com and co-creator of Amazing Selling Machine. Follow Matt on Instagram.
9. ‘Launch a coaching business.’
“I’ve built two seven-figure businesses from nothing and helped others reach similar success. While I had more than $100 to start, it wasn’t much more.
Once you’ve invested your $100 in developing skills that make you an expert, you can build a coaching, consulting or mentoring business in your area of expertise.
This model is popular for many reasons: It’s fast, effective and requires minimal investment because the only cost is your time. When you’ve made some money from your business, invest the profits in Facebook ads to get more clients.
If you’re good at what you do, you can grow that investment into tens of thousands of dollars. To exceed the million-dollar mark, automate some of the coaching and hire other coaches to work for you.”
—Rudy Mawer, founder and CEO of ROI Machines and RudyMawer.com, Facebook marketing and ad expert, who built a multimillion-dollar business by age 26. Follow Rudy on Instagram.
Join The Oracles, a mastermind group of the world’s leading entrepreneurs who share their success strategies to help others grow their businesses and build better lives. For more, follow The Oracles on Facebook and LinkedIn.
Like this story? Subscribe to CNBC Make It on YouTube!
Don’t miss:
These valuable pennies are worth up to $200,000—and they might be in your pocket
Never, ever use a debit card,′ warns fraud expert and ex-con artist—here’s what to do instead
61-year-old self-made millionaire: 4 things I regret wasting money and time on in my 20s
1:10
Bill Gates: These skills will be most in-demand in the job market of the future
Trending Now
Jeff Bezos says this is what he would have done if Amazon didn’t work out
You’re more likely to lose your job by 2026 if you’re working in one of these 10 disappearing jobs
9 habits that can instantly destroy your reputation, according to these self-made millionaires
Thinking of consolidating your debt with a personal loan? There might be better options
This side hustle can earn you up to $3,840 a month in extra income. Here are 5 other lucrative gigs
make it
Stay in the loop
Get Make It newsletters delivered to your inbox
SIGN UP
About Us
Learn more about the world of CNBC Make It
LEARN MORE
Follow Us
CNBC.COM
© 2020 CNBC LLC. All Rights Reserved. A Division of NBC Universal
Privacy Policy - New
Do Not Sell My Personal Information
Terms of Service
Contact