网友收藏 文章浏览阅读136次。日常用到的spark调优1.如果使用spark读取mysql中的表格写进数仓中,可以先将限制条件或者整个sql先写进jdbc连接参数中。如果是将mysql整个表读入内存中再建立临时表,如果mysql的表过大,反而会占用更多内存......
2024-01-23 20:02 阅读
阅读全文 网友收藏 本文介绍IPC之管道通信机制的内部实现机制。首先概述管道通信,然后阐述管道的结构,之后通过剖析Linux 0.11内核源码来分析管道的内部实现机制,最后通过一个实例来阐述管道的应用。知其然,若知其所以然将有利于我们更......
2023-10-13 11:25 阅读
阅读全文 网友收藏 文章目录sysbench 自带的Lua脚本Lua脚本读写性能测试语句oltp_common.luabulk_insert.luaoltp_delete.luaoltp_insert.luaoltp_point_select.luaoltp_read_only.luaoltp_read_write.luaoltp_update_index.luaoltp_update_non_index.luaol..._oltp_read_write.lua...
2023-10-12 12:31 阅读
阅读全文 网友收藏 read系统调用头文件 #include <unistd.h>函数使用 ssize_t read(int fd, void *buf, size_t count)read 函数会从文件描述符fd中读取指定的count长度的内容,并且将读到的结果放入到buf缓冲区中返回值count 读取成功,则会返回读到的字节数小于co......
2023-10-13 07:10 阅读
阅读全文 网友收藏 文章浏览阅读4.3k次,点赞2次,收藏3次。今天照常打开日志文件查看日志,结果发现一大堆报错:“The MySQL server is running with the LOCK_WRITE_GROWTH option so it cannot execute this statement”,遂查了一下原来是阿里云的数据库被锁了锁住的......
2023-11-11 17:24 阅读
阅读全文 网友收藏 文章浏览阅读5k次。当程序运行时,变量是保存数据的好方法,但变量、序列以及对象中存储的数据是暂时的,程序结束后就会丢失,如果希望程序结束后数据仍然保持,就需要将数据保存到文件中。Python 提供了内置的文件对象......
2024-01-24 10:19 阅读
阅读全文 网友收藏 文章浏览阅读1.3k次,点赞2次,收藏6次。接着上一节讲。在用户程序中调用printf,会输出数据,我们知道最好肯定会进入到内核里运行,因为数据是由硬件通过串口等进行输出的,必定需要调用硬件的驱动程序。示例程序如下:......
2023-11-14 00:11 阅读
阅读全文 网友收藏 文章浏览阅读1.3k次,点赞2次,收藏6次。接着上一节讲。在用户程序中调用printf,会输出数据,我们知道最好肯定会进入到内核里运行,因为数据是由硬件通过串口等进行输出的,必定需要调用硬件的驱动程序。示例程序如下:......
2023-11-21 03:55 阅读
阅读全文 网友收藏 文章浏览阅读701次。 在 Linux 中,一切(或几乎一切)都是文件,因此,文件操作在 Linux 中是十分重要的,为此,Linux 系统直接提供了一些函数用于对文件和设备进行访问和控制,这些函数被称为系统调用(syscall),它们也......
2023-11-13 14:30 阅读
阅读全文