我竟然不知道怎么组织语言了…因为我老婆总是说我前言不搭后语…不过她也说过,我的语言习惯比较符合英文的习惯,几乎全是定语从句,状语也不少,可能也比较符合中国古文,比如类似“微斯人,吾谁与归”,“谁人共我”之类…

我对操作系统还有有一番探究的(just research, not research),我也一直都想好好畅谈操作系统,然而我语言太刺,让人不悦,我也只能收着…今天突发奇想,要喷干嘛不用英文呢?我说中文都是英文的习惯(西方文化历史看多了,崇洋确实,但不媚外!),干嘛不直接用英文。

一篇英文blog,折腾了大半天,试试看(我反翻译过了,还算通顺…)。


Do we need an operating system?

Let’s consider a seemingly pointless issue.

What exactly is the meaning of an operating system? In particular, when we’re stuck with optimization problems all day, think back!

  • We optimized the spin lock,
  • We optimized the TCP/IP stack,
  • So we optimized the slab algorithm?
  • We optimize interrupt handling,
  • We’ve got interrupt threading,

God damn it! This is all about fucking the operating system!

If we know exactly what a program does, why can’t we just let it do it? Why do we have to make it run on something regrettable called an operating system? That’s a shame!

It’s creepy, it’s scary…

Well, let’s face it instead of name-calling: what does an operating system mean?

Before operating systems were given a proper name, they weren’t taken as seriously as they are now.

I don’t know any further back, starting with Ken Thompson in 1969.

At the time, UNIX contained the kind of logic that several of them needed for every application. In other words, UNIX is the largest common divisor.
Beyond this, and even more important than this, UNIX provides an abstraction of time and space:

  • time abstraction: time-sharing using CPU
  • spatial abstraction: virtual memory

That’s what operating systems are all about!

Now, who needs this? In other words, who thinks these meanings are meaningful?

Of course, the time-sharing system needs virtual memory applications.

Now, if you just want to run a Web server, who the hell do you need to share time with? The only fucking application running in your machine, you think its performance is low, this is the operating system pot!

Don’t use an operating system, just run your application, because your application doesn’t need time sharing, doesn’t need virtual memory.

All of the machine’s resources are owned by your unique application, and you don’t need the resources management services provided by the operating system. To manage these resources, you can do it yourself in your application and do it your way.


I’ve been focusing on a scene recently, which is my job, but I hate it.
We ran a quic service on our server hardware, and there were too many performance bottlenecks. When I explored it with perf, I found a lot of Linux kernel hot spots like spin_lock and memcpy…

I tried to optimize this, it took me a lot of time, I was working all night fucking, and then, I got mad.

I found that in later versions of the Linux kernel, these issues had been fixed in exactly the same way as I had. Oh, gosh!

We are all clowns juggling around the Linux kernel!

Go away, Linux kernel! All the performance problems, 90% is because of you, all the business logic, 90% do not need you!


The operating system provides convenience at the expense of performance.

Why is the TCP/IP stack implemented in the kernel?

Blame the 1970s-1990s bunch of bearded old programmers who treat TCP/IP as “function” rather than “application.” Function is the responsibility of the kernel.

In other words, everyone who started out with UNIX, from the bottom up, was a programmer, not a business logic person, much less a product manager.

Programmers don’t focus on the business, and if the suit wearers focus on UNIX during the 1070s, then the TCP/IP destined for the 1980s won’t be part of the kernel, it might just be a user base incorporated into the libc.


【下面这句用英文真不知道怎么表达,谁能告诉我,大恩不言谢!】
浙江温州皮鞋湿,下雨进水不会胖。

Do we need an operating system?相关推荐

  1. How to Make a Computer Operating System

    How to Make a Computer Operating System 如何制作一个操作系统(翻译版) 原文地址:Github:How to Make a Computer Operating ...

  2. VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法

    VMware vSphere Client中启动虚拟机提示No boot filename received/Operating System not found解决方法 参考文章: (1)VMwar ...

  3. vm虚拟机安装系统后出现operating system not found解决办法(VM装ghost 不能进系统的解决方法)

    vm虚拟机安装系统后出现operating system not found解决办法不知你使用那种软件分的区?   用DIANGEN的话,它本来就清楚列明了激活分区选项的. 如果用PQ分区的话,还必须 ...

  4. Directory lookup for the file xxx.mdf failed with the operating system error 2

    Directory lookup for the file "xxx.mdf" failed with the operating system error 2(系统找不到指定的文 ...

  5. 成功解决解决VM软件安装Linux的Ubuntu过程,打开时 Operating System not found

    成功解决解决VM软件安装Linux的Ubuntu过程,打开时 Operating System not found 目录 解决问题 解决思路 解决方法 解决问题 安装Ubuntu16.04虚拟机,打开 ...

  6. 什么是posix?(Portable Operating System Interface 便携式操作系统接口)

    POSIX(Portable Operating System Interface)是Unix系统的一个设计标准.当年最早的Unix,源代码流传出去了,加上早期的Unix不够完善,于是之后出现了好些独 ...

  7. linux ros是什么?(Robot Operating System)

    Robot Operating System 参考文章:ROS学习入门(抛砖引玉篇)

  8. 【中级软考】什么是实时操作系统?(RTOS:Real Time Operating System)

    实时操作系统(RTO:Real Time Operating System)是指当外界事件或数据产生时,能够接受并以足够快的速度予以处理,其处理的结果又能在规定的时间之内来控制生产过程或对处理系统做出 ...

  9. 如何定位“Operating system error 32(failed to retrieve text for this error. Reason: 15105)”错误中被占用的文件...

      之前在这篇"Operating system error 32(failed to retrieve text for this error. Reason: 15105)"博 ...

  10. How to write an operating system

    以前上学时从网上找到的一篇好文章,翻译过,但找不到译文了,整理资料时找到了,虽然用处不大,但也是一番回忆,贴到这儿先. How to write an operating system Writing ...

最新文章

  1. foreach判断最后一个_JavaScript很简单?那你理解的forEach真的对吗?
  2. Weblogic12C 集群实现session同步
  3. 成就连自己都惊讶的未来
  4. 《Node.js入门》Windows 7下Node.js Web开发环境搭建笔记
  5. ABAP:关于文本(Read_text,Save_text)
  6. 数学家探索两个几何世界之间的镜像链接
  7. python module: csv
  8. spark-sql如何删除表_SparkSQL数据源之Hive数据库
  9. Unity UGUI坐标和世界坐标转化
  10. h5 标签video和audio标签的下载按钮
  11. 51单片机和315M无线发射模块编码与解码
  12. 香港城市大学赵翔宇招收AI机器学习数据挖掘 全奖PhD/博后/RA
  13. 【FFmpeg编码实战】(2)将YUV420P图片集编码成H.264视频文件(方法二)
  14. 树莓派开发笔记(十七):树莓派4B+上Qt多用户连接操作Mysql数据库同步(单条数据悲观锁)
  15. P1873 砍树(简单二分)
  16. JAVA C~K的班级
  17. 基于Linux的航班管理系统
  18. 如何部署一台云服务器并且和域名绑定
  19. SQL Sever2008r2 数据库服务各种无法启动的解决办法
  20. CC And MC Introduce

热门文章

  1. ANSI/ISO C++ Professional Programmer's Handbook 7
  2. LoraWAN源码学习(1)--通道选择详解
  3. harmonyOS hdc配置以及自动签名
  4. 什么是CSR以及CSR的作用和生成方法
  5. PointNetGPD: Detecting Grasp Configurations from Point Sets
  6. My Neighbor Alice新一轮土地销售分析
  7. Mac pro M2芯片如何进入恢复模式
  8. informix数据库大全(持续更新)
  9. 脸上长痘部位详解 从痘痘看身体状况
  10. 名悦集团:冬季汽车开暖风有哪些注意事项