Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hugeedit(7) [centos man page]

HUGEEDIT(7)						 Miscellaneous Information Manual					       HUGEEDIT(7)

NAME
hugeedit - Set default policy for backing text and data with hugepages SYNOPSIS
hugeedit binary hugeedit [options] binary DESCRIPTION
hugectl runs processes with a specific policy for backing memory regions with hugepages. Ordinarily when processes are relinked with lib- hugetlbfs using the recommended linking method, either hugectl is required on each execution or environment variables must be set for each execution. hugeedit can be used to set bits in the ELF header that determine if the text or data segments are backed by default without further intervention. If no arguments are specified, hugeedit will display what the current defaults for each segment in a binary are. The available options are --text Back the text segments of the binary by default. --data Back the data segments of the binary by default --disable Back all segments using small pages by default SEE ALSO
oprofile(1), libhugetlbfs(7), hugectl(8) AUTHORS
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. October 8, 2008 HUGEEDIT(7)

Check Out this Related Man Page

GET_HUGE_PAGES(3)					     Library Functions Manual						 GET_HUGE_PAGES(3)

NAME
get_huge_pages, free_huge_pages - Allocate and free hugepages SYNOPSIS
#include <hugetlbfs.h> void *get_huge_pages(size_t len, ghp_t flags); void free_huge_pages(void *ptr); DESCRIPTION
get_huge_pages() allocates a memory region len bytes in size backed by hugepages. Hugepages may be of benefit to applications that use large amounts of address space and suffer a performance hit due to TLB misses. Wall-clock time or oprofile can be used to determine if there is a performance benefit from using hugepages or not. The len parameter must be hugepage-aligned. In the current implementation, only the default hugepage size may be allocated via this func- tion. Use gethugepagesize to discover what the alignment should be. The flags argument changes the behaviour of the function. Flags may be or'd together. GHP_DEFAULT Allocate a region of memory of the requested length backed by hugepages of the default hugepage size. Return NULL if sufficient pages are not available free_huge_pages() frees a region of memory allocated by get_huge_pages(). The behaviour of the function if another pointer is used, valid or otherwise, is undefined. RETURN VALUE
On success, a pointer is returned to the allocated memory. On error, NULL is returned. errno will be set based on what the failure of mmap() was due to. SEE ALSO
oprofile(1) , gethugepagesize(3) , get_hugepage_region(3) , libhugetlbfs(7) AUTHORS
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. October 8, 2008 GET_HUGE_PAGES(3)
Man Page

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

is it text or binary

I need to know from a script if a given file is a text file (ascii) or binary. I need it in order to do dos2unix on each text file - and not on binary files (1 Reply)
Discussion started by: avnerht
1 Replies

2. UNIX for Dummies Questions & Answers

How to convert binary Unix file to text

Hi all, I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
Discussion started by: user12345
5 Replies

3. Programming

trying to convert binary data to text using C++

i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter. i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions. the kind of values i get are -1.265369923E+038 and like ... (2 Replies)
Discussion started by: geet
2 Replies

4. IP Networking

Back-to-Back Connection using HBAs

Hi every body, Is it possible to connect two servers Back-to-Back (Point-to-Point) using HBA adapters & using Fiber. Note it is direct connection & there is no switches between the servers. I'm concern about using HBA adapters, it is possible or not. Thanks in advance. :) (3 Replies)
Discussion started by: aldowsary
3 Replies

5. UNIX for Advanced & Expert Users

Deal with binary sequences

Hello, I have come across the necessity for me to deal with binary sequences and I had a few questions. 1- Does any UNIX scripting language provide any tool or command for converting text data to binary sequences? Example of binary sequence: "0x97 0x93 0x85 0x40 0xd5 0xd6 0xd7" 2- If I want... (2 Replies)
Discussion started by: Indalecio
2 Replies

6. Shell Programming and Scripting

How to check binary files in VI editor?

Hi, i have a file that contain both text and binary inside the file.. i want to see the binary part.. how can i check that ? (2 Replies)
Discussion started by: mail2sant
2 Replies

7. Shell Programming and Scripting

binary file conversion

Hello folks, i have a binary text file but i am not able to convert into text format, please suggest. thanks. (2 Replies)
Discussion started by: learnbash
2 Replies

8. UNIX for Advanced & Expert Users

Inserting duplicate lines in a file

Hi, I copied the contents of a binary file into a .text file using hd (hexdump) command. The data in binary file is such that I get in many places like following 00000250 00 00 00 00 3f 2d 91 68 3f 69 fb e7 00 00 00 00 |....?-.h?i......| 00000260 00 00 00 00 00 00 00 00 00 00 00 00 00... (2 Replies)
Discussion started by: KidD312
2 Replies

9. Shell Programming and Scripting

Removing inline binary data from txt file

I am trying to parse a file but the filehas binary data inline mixed with text fields. I tried the binutils strings function , it get the binary data out but put the char following the binary data in a new line . input file app_id:1936 pgm_num:0 branch:TBNY ord_num:0500012(–QMK) deal_num:0... (12 Replies)
Discussion started by: tasmac
12 Replies

10. Red Hat

Block binary execution

Hi guys, Is it possible on rhel 6.2 to block execution of a binary and display a custom message on stdout or stderr? thanks (5 Replies)
Discussion started by: gkout
5 Replies

11. Shell Programming and Scripting

Problem with binary file

I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it. Thx. ---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ---------- I have found the solution cat file | tr -d '\0' (8 Replies)
Discussion started by: protocomm
8 Replies

12. UNIX for Dummies Questions & Answers

Converting binary file to text file

Hi, Im wondering how I can convert a binary file to a text file? I have ran the following command to output which type of binary file coding it is od -t x1 -c eHat.data0 | head -20 and that gives me the following output; 0000000 5c 00 00 00 cd 06 f2 41 00 00 00 c6 00 00 00 c6 \ \0 \0 \0... (3 Replies)
Discussion started by: dp0b
3 Replies

13. Shell Programming and Scripting

Awking binary data

i have a binary data that has some text in it. what i want to do is, i want to grab just piece of information from the binary. but when i run my awk on it, it returns nothing. awk -F"MYINFO=" '{print $2}' mybinary however, when i install gawk, then try again, it works. i would prefer... (1 Reply)
Discussion started by: SkySmart
1 Replies