Language Selection

English French German Italian Portuguese Spanish

IBM/Red Hat/Fedora Leftovers

Filed under
Red Hat

  • Detecting memory management bugs with GCC 11, Part 2: Deallocation functions

    The first half of this article described dynamic memory allocation in C and C++, along with some of the new GNU Compiler Collection (GCC) 11 features that help you detect errors in dynamic allocation. This second half completes the tour of GCC 11 features in this area and explains where the detection mechanism might report false positives or false negatives.

    Throughout this article, I include links to the code examples on Compiler Explorer for those who would like to experiment. You will find the links above the source code of each example.

  • Memory error checking in C and C++: Comparing Sanitizers and Valgrind

    This article compares two tools, Sanitizers and Valgrind, that find memory bugs in programs written in memory-unsafe languages. These two tools work in very different ways. Therefore, while Sanitizers (developed by Google engineers) presents several advantages over Valgrind, each has strengths and weaknesses. Note that the Sanitizers project has a plural name because the suite consists of several tools, which we will explore in this article.

    Memory-checking tools are for memory-unsafe languages such as C and C++, not for Java, Python, and similar memory-safe languages. In memory-unsafe languages, it is easy to mistakenly write past the end of a memory buffer or read memory after it has been freed. Programs containing such bugs might run flawlessly most of the time and crash only very rarely. Catching these bugs is difficult, which is why we need tools for that purpose.

    Valgrind imposes a much higher slowdown on programs than Sanitizers. A program running under Valgrind could run 20 to 50 times slower than in regular production. This can be a showstopper for CPU-intensive programs. The slowdown for Sanitizers is generally 2 to 4 times worse than regular production. Instead of Valgrind, you can specify the use of Sanitizers during compilation.

  • Building resilient event-driven architectures with Apache Kafka

    Even though cloud-native computing has been around for some time—the Cloud Native Computing Foundation was started in 2015; an eon in computer time—not every developer has experienced the, uh, “joy” of dealing with distributed systems. The old patterns of thinking and architecting systems have given way to new ideas and new problems. For example, it’s not always possible (or advisable) to connect to a database and run transactions. Databases themselves are giving way to events and Command Query Responsibility Segregation (CQRS) and eventual consistency. Two-phase commits are being replaced with queues and database sagas, while monoliths are replaced with microservices, containers, and Kubernetes. “Small and local” thinking rules the day.

    Now combine this with the fallacies of distributed processing, and suddenly event-driven architecture becomes very attractive. Thankfully, there are tools to make this possible. Apache Kafka is one of those tools.

    Kafka makes event processing possible; Red Hat OpenShift Streams for Apache Kafka makes event processing easy.

  • Kubernetes configuration patterns, Part 2: Patterns for Kubernetes controllers - Red Hat Developer

    This article is the second in a two-part article series on Kubernetes configuration patterns, which you can use to configure your Kubernetes applications and controllers. The first article introduced patterns and antipatterns that use only Kubernetes primitives. Those simple patterns are applicable to any application. This second article describes more advanced patterns that require coding against the Kubernetes API, which is what a Kubernetes controller should use.

    The patterns you will learn in this article are suitable for scenarios where the basic Kubernetes features are not enough. These patterns will help you when you can’t mount a ConfigMap from another namespace into a Pod, can’t reload the configuration without killing the Pod, and so on.

    As in the first article, for simplicity, I’ve used only Deployments in the example YAML files. However, the examples should work with other PodSpecables (anything that describes a PodSpec) such as DaemonSets and ReplicaSets. I have also omitted fields like image, imagePullPolicy, and others in the example Deployment YAML.

  • Join the Build Smart on Kubernetes Challenge

    As the growth of container deployment and microservices accelerates, Kubernetes continues to dominate the enterprise development space. Do you feel like you’re getting left behind and you need to build your skills to catch up? Or are you a leader of the pack, forging new paths for your team? In either case, we have the coding challenge for you. The Build Smart on Kubernetes Challenge helps you build and test applications, and deploy containers with simplicity and security that is built in. Compete against fellow developers and experts in this progressive workshop that consists of three, quick-coding, 15-minute exercises, each exploring a different aspect of the skills or technology needed for cloud-native development. You have the opportunity to earn the Build Smart on Kubernetes Badge to demonstrate your knowledge. Oh, and you can win some great prizes.

  • Community Platform Engineering is hiring [Ed: IBM shows you a picture of an Apple Mac and says it's hiring for Fedora! No wonder they lost volunteers and testers.]

    The Community Platform Engineering (CPE) group is the Red Hat team combining IT and release engineering from Fedora and CentOS. Our goal is to keep core servers and services running and maintained, build releases, and other strategic tasks that need more dedicated time than volunteers can give. See our docs for more information.

  • Hybrid work model: Qualcomm IT, HR execs share 6 priorities for leaders

    Traditionally, the workplace has been where employees have developed a sense of belonging. In addition to getting lots of work done, it’s where we’d connect with others while walking to a meeting, share hopes and hardships over a cup of coffee, and set and achieve career goals and aspirations. As we all know, COVID-19 has forever changed that.

    We’re now in a unique position to reimagine work through new technologies and by reframing the employee experience to imagine something even better than before. At Qualcomm, human resources and IT have partnered to spearhead the future of work. This partnership has provided us with a unique, well-rounded perspective on how we work with our employees, what we need to support them, and has helped us envision what the dynamics of hybrid work will look like in the years ahead.

  • 2nd Annual Open Mainframe Summit: Call For Proposals Now Open
  • Developer Sandbox For Red Hat OpenShift Launched
  • RHEL, RHEL, RHEL, fancy that: Rocky Linux would-be CentOS replacement hits RC1 milestone • The Register

    The Rocky Linux project, kicked off by original CentOS founder Gregory Kurtzer, has released RC1 of its distribution, which aims to be 100 per cent compatible with Red Hat Enterprise Linux.

    Rocky Linux was founded almost at the same moment when Red Hat, along with the CentOS board, stated last December that it was shifting its investment from CentOS Linux to CentOS Stream.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.