大约有 11,000 项符合查询结果(耗时:0.0248秒) [XML]

https://www.tsingfun.com/it/cp... 

Linux C++程序内存占用过高的原因分析 - C/C++ - 清泛网 - 专注C/C++及内核技术

Linux C++程序内存占用过高的原因分析linux_memory_usage_too_high1、使用top命令查看内存占用情况,物理内存占用过高时,也重点看一下Swap交换内存占用情况,如果交换内存也开始被使用了,那一定是程序的内存泄漏导致的,Linux使用va...
https://www.tsingfun.com/it/cp... 

Linux C/C++进程单实例互斥代码分享 - C/C++ - 清泛网 - 专注C/C++及内核技术

Linux C/C++进程单实例互斥代码分享linux-process-singleton分享一段LinuxC C++程序只能启动一份实例的实现代码,原理是通过文件锁互斥实现,最重要的是考虑了不同用户运行同一程序互斥的场景,已经过充分的测试,可直接用于实际项...
https://www.tsingfun.com/it/os... 

【解决】Linux用户xfce界面卡住(不同地方登陆,状态不对导致) - 操作系统...

【解决】Linux用户xfce界面卡住(不同地方登陆,状态不对导致)linux-xfce-stuckLinux用户xfce界面卡住,可能是不同地方登陆,状态不对导致,应该是xfce桌面的bug,目前的解决方法是kill掉该用户下的所有进程,重新进入xfce桌面即可...
https://www.tsingfun.com/it/os... 

理解和配置 Linux 下的 OOM Killer - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术

理解和配置 Linux 下的 OOM Killerhow-to-configure-the-linux-oom-killer最近有位 VPS 客户抱怨 MySQL 无缘无故挂掉,还有位客户抱怨 VPS 经常死机,登陆到终端看了一下,都是常见的 Out of memory 问题。这通常是因为某时刻应用程序大量请求 最...
https://stackoverflow.com/ques... 

How to determine whether a given Linux is 32 bit or 64 bit?

...=> 64-bit kernel i686 ==> 32-bit kernel Otherwise, not for the Linux kernel, but for the CPU, you type: cat /proc/cpuinfo or: grep flags /proc/cpuinfo Under "flags" parameter, you will see various values: see "What do the flags in /proc/cpuinfo mean?" Among them, one is named lm: L...
https://stackoverflow.com/ques... 

How do I mount a remote Linux folder in Windows through SSH? [closed]

...en reader and an ssh session. I was wondering if it is possible to mount a Linux folder over ssh so it appears as a windows drive? This way I could edit any files I needed to with accessible software and not have to constantly use SCP to send files back and fourth. ...
https://stackoverflow.com/ques... 

What is difference between monolithic and micro kernel?

... invoke functions directly. Examples of monolithic kernel based OSs: Unix, Linux. In microkernels, the kernel is broken down into separate processes, known as servers. Some of the servers run in kernel space and some run in user-space. All servers are kept separate and run in different address spac...
https://www.tsingfun.com/it/os_kernel/712.html 

通过 ulimit 改善系统性能 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术

...理这些问题时,经常使用的一种简单手段。ulimit 是一种 linux 系统的内键功能,它具有一套参数集,用于为由它生成的 shell 进程及其子进程的资源使用设置限制。本文将在后面的章节中详细说明 ulimit 的功能,使用以及它的影响...
https://stackoverflow.com/ques... 

Measure time in Linux - time vs clock vs getrusage vs clock_gettime vs gettimeofday vs timespec_get?

...ock on the wall (or desktop). Here's what I've found so far for clocks in Linux and OS X: time() returns the wall-clock time from the OS, with precision in seconds. clock() seems to return the sum of user and system time. It is present in C89 and later. At one time this was supposed to be the CPU...
https://stackoverflow.com/ques... 

How do I find the location of the executable in C? [duplicate]

...aight and realiable way is to: readlink("/proc/self/exe", buf, bufsize) (Linux) readlink("/proc/curproc/file", buf, bufsize) (FreeBSD) readlink("/proc/self/path/a.out", buf, bufsize) (Solaris) On Unixes without /proc (i.e. if above fails): If argv[0] starts with "/" (absolute path) this is the ...