Linux TCP/IP protocol stack Optimization

The following parameters are frequently mentioned in optimizing the network tuning of Linux. Setup in/etc/sysctl. conf # Network tunningNet. ipv4.tcp _ fin_timeout = 35Net. ipv4.tcp _ keepalive_time = 1800Net. ipv4.tcp _ keepalive_intvl = 35Net.

Port the socket program from win to Linux

SocketProgramPort windows to Linux:   1) header file Winsock. h/winsock2.h in Windows Sys/socket. h in Linux Error Handling: errno. h   2) initialization Wsastartup is required for Windows. Not required in Linux   3) Disable

Linux Signal Handling

ASignalIs a software interrupt delivered to a process. the operating system uses signals to report exceptional situations to an executing program. some signals report errors such as references to invalid memory addresses; others report asynchronous

Linux ps commands

PS display instructions:Linux @ Ubuntu ::~ $ PS auxwf | lessUser PID % CPU % mem vsz RSS tty stat Start Time CommandRoot 2 0.0 0.0 0 0? S [kthreadd]Root 3 0.0 0.0 0 0? S/_ [ksoftirqd/0]Root 5 0.0 0.0 0 0? S/_ [kworker/u: 0]Root 6 0.0 0.0 0 0? S/_

Quick use of Linux History commands

Use history {$ num} to view the recently used $ num commands. The default value is 500; 1. CTRL + R: (reverse-I-search, the terminal will scroll to display your History commands. When you find the appropriate historical command, you can directly [

Linux likely and unlikely macros

In Linux 2.6, these two macro products are often seen, for example: -------------------------------------------------- If (likely (sndcmd )){ Chip-> Functions func (MTD, nand_1__read0, 0x00, page ); Sndcmd = 0; } -------------------------------

Linux git (2)

I learned something again today. Remember: 1: to create a git server repository, install git first. 1) install OpenSSH-server (SSH: Security shell ); Sudo apt-Get install OpenSSH-Server 2) create a warehouse directory and initialize the

UClinux-Dist/linux-2.4.x

4. Migration Project and description 4.1 modify the starting address of the compressed kernel code Modify file: uClinux-Dist/linux-2.4.x/ARCH/armnommu/boot/makefileModification content:Ifeq ($ (config_board_mba44), Y)Ztextaddr = 0x0c100000Zreladdr =

Dual-nic host in Linux

A few days ago, I assigned my laptop a USB Nic. This is because there is no desktop in the dormitory. In the past few days, I had a desktop computer, but I didn't have a dual Nic. homeshare when I used Netcom,In addition, due to the instability of

Cause and debugging of segment errors in Linux

In short, a segment error occurs when you access the wrong memory segment. Generally, you do not have the permission or the corresponding physical memory exists, especially when you access the 0 address. Generally,A segment error means that the

Use a bluetooth device in Linux

Ubuntu has a gnome Bluetooth Desktop Manager, which is easy to use, but you cannot understand the details of this tool. Let's look at the method below and use the script written by bluez, I have studied it for Embedded purposes.     1. Load the

LINUX multi-thread design

# Include 1. Create int pthread_create (pthread_t * tid, const pthread_attr_t * ATTR, void * (* func) (void *), void * Arg); ATTR: thread attributes include: priority, initial stack size, whether it should be a daemon thread. By default, null is

Windows and Linux dynamic library search sequence

Open the file name of the dynamic library specified in the dynamic library function (dlopen or loadlibrary), and search for the dynamic library in the following order when the program is running 1. Search Path of the library file: 1. In the

Linux Device Drivers 2nd Edition notes

Without device drivers, there is no functioning system. User Activities are saved med by means of a set of standardized cballs that are independent of the specific driver; mapping those callto device-specific operations that act on real hardware is

Linux route command details

Linux @ Ubuntu ::~ $ RouteKernel IP routing tableDestination gateway genmask flags metric ref use iface192.168.8.0*255.255.255.0 u 0 0 0 eth0Default 192.168.8.1 0.0.0.0 ug 0 0 0 eth0=-=The first line indicates that the network address of the host is

Linux FFMPEG simple video player

1. I believe you have seen a lot about FFMPEG on the Internet. I will not introduce it here. I will share the code below and share some of my experiences with FFMPEG. 2. Linux FFMPEG usage steps Initialize FFMPEG library av_register_all () Read

Linux-based v4l2 video architecture driver Compilation

First, you have to have at least one camera before learning v4l2. In addition, it is best to specify a plan for you to learn in a targeted manner and set a time so that you have a sense of urgency. It is not very difficult to get started with v4l2

Linux Device Drivers (2) character device drivers (1)

Download this mp3-(right click) Start the Linux Device Driver journey with music. The next few logs will record the compilation and testing of the "character device driver. I chose to paste code and describe to analyze and design our driver, because

Operating hardware registers in Linux

After one or two days of exploration, I basically had a preliminary understanding of Linux control hardware: the difference between hardware control in Linux and hardware control in a non-operating system is that the hardware address is different.

Introduction to multi-thread programming in Linux-thread function explanation

CreateThread:Int pthread_create (pthread_t * restrict thread, Const pthread_attr_t * restrict ATTR, Void * (* start_routine) (void *), void * restrict Arg ); Parameters:Thread output thread ID ATTR thread attribute, default: NULL start_routine

Total Pages: 5467 1 .... 3522 3523 3524 3525 3526 .... 5467 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.